ooops...that was just for testing...I will remove it.Remove "print link" line.
It gave me problems![]()
http://www.dailymotion.com/cdn/manifest/video/x11v2s6.mnft?auth=1374382211-54971399ab19770e508ba1a7ddd7ca8c
{"version":"1","duration":1201,"alternates":
[
{"name":"240",
"bitrate":246,
"codecs":"mp4a.40.2,avc1.42000d",
"width":320,
"height":180,
"template":"http://proxy-02.nyc.dailymotion.com/sec(d1ef7f1c691a9422636970ee874f05e8)/video/437/595/63595734_mp4_h264_aac_ld.mnft#cell=nyc&comment="
},
{"name":"380",
"bitrate":460,
"codecs":"mp4a.40.2,avc1.42001e",
"width":512,"height":288,
"template":"http://proxy-02.nyc.dailymotion.com/sec(4272357de5f0c1896e53c9844e2f7e1c)/video/437/595/63595734_mp4_h264_aac.mnft#cell=nyc&comment="
},
... # MORE VIDEO QUALITIES
],
"default":"480"}
http://proxy-02.nyc.dailymotion.com/sec(d1ef7f1c691a9422636970ee874f05e8)/video/437/595/63595734_mp4_h264_aac_ld.mnft#cell=nyc&comment=
{"version":"1","duration":1200.602,"bitrate":246,"codecs":"mp4a.40.2,avc1.42000d",
"audio":{"codec":"AAC/LC","bitrate":64,"channels":2,"samplesize":16,"samplerate":22050},
"video":{"codec":"H264/AVC [email protected]","bitrate":180,"width":320,"height":184,"framerate":29.970},
"template":"/sec(d1ef7f1c691a9422636970ee874f05e8)/frag($fragment$)/video/437/595/63595734_mp4_h264_aac_ld.flv",
"fragments":[[1,9.276],[1,10.711],[3,10.010],[1,9.343],[1,10.644],...]}
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-ALLOW-CACHE:YES
#EXT-X-VERSION:2
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10,
http://proxy-06.nyc.dailymotion.com/sec(d1ef7f1c691a9422636970ee874f05e8)/frag(1)/video/437/595/63595734_mp4_h264_aac.flv
#EXTINF:10,
http://proxy-06.nyc.dailymotion.com/sec(d1ef7f1c691a9422636970ee874f05e8)/frag(2)/video/437/595/63595734_mp4_h264_aac.flv
... # AND SO ON WITH OTHER FRAGMENTS...
#EXT-X-ENDLIST
@Eldorado: I have made the changes that you suggested. Please review the code and let me know if it looks OKAwesome stuff thanks!
I need to do a couple small updates to the code though
- the google red x graphic is included in the resources folder now, no need to pull it online
- change print statements to addon.log()
- wrap the entire code in get_media_url() with try:except
- return self.unresolvable() if link cannot be found
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
T | News Dailymotion Must Pay €5.5m For Failing to Remove Pirated Content | Underground News | 0 | |
K | Dailymotion Private File Resolver??? | Addon Development | 3 | |
T | FYI: Dailymotion added a timer - resolver needs to be updated | Addon Development | 0 |