spaam / svtplay-dl

Small command-line program to download videos from some streaming sites.
https://svtplay-dl.se
MIT License
713 stars 117 forks source link

Bug - Dagens Industri and Expressen Collaboration. #546

Open MR-2 opened 7 years ago

MR-2 commented 7 years ago

Seems like Expressen are collaborating with Dagens Industri from now on. Di is forwarding to Expressen.

Same video but two different ULRs.

Works perfectly:

svtplay-dl http://www.expressen.se/tv/ekonomi/borsmorgon/lardomar-av-kollapsen-nifty-fifty/ --verbose
DEBUG [1485941349.34] /usr/local/bin/svtplay-dl/svtplay_dl/utils/__init__.py/request: HTTP getting 'http://www.expressen.se/tv/ekonomi/borsmorgon/lardomar-av-kollapsen-nifty-fifty/'
DEBUG [1485941350.12] /usr/local/bin/svtplay-dl/svtplay_dl/utils/__init__.py/request: HTTP getting u'http://www.expressen.se/tvspelare/video/tv/ekonomi/borsmorgon/lardomar-av-kollapsen-nifty-fifty/?autoplay=true&'
DEBUG [1485941350.24] /usr/local/bin/svtplay-dl/svtplay_dl/utils/__init__.py/request: HTTP getting u'http://5925bfc751bcf2add8ef732b7ddd4ddf-httpcache0-03837-cacheod0.dna.qbrick.com/03837-cacheod0/_definst_/smil:ncode/2017-02-01/expr7f6ed2c951864646b0b23f3312a55af9_742291828/BM_Dagel_Nifty_Fifty_170201_576p/playlist.m3u8'
DEBUG [1485941350.87] /usr/local/bin/svtplay-dl/svtplay_dl/utils/__init__.py/request: HTTP getting u'http://5925bfc751bcf2add8ef732b7ddd4ddf-httpcache0-03837-cacheod0.dna.qbrick.com/03837-cacheod0/_definst_/smil:ncode/2017-02-01/expr7f6ed2c951864646b0b23f3312a55af9_742291828/BM_Dagel_Nifty_Fifty_170201_576p/playlist.m3u8'
DEBUG [1485941351.02] /usr/local/bin/svtplay-dl/svtplay_dl/utils/__init__.py/protocol_prio: Protocol priority scores (higher is better): {'dash': 5, 'hds': 3, 'hls': 4, 'http': 2, 'rtmp': 1}
INFO [1485941351.02] /usr/local/bin/svtplay-dl/svtplay_dl/__init__.py/get_one_media: Selected to download hls, bitrate: 1800
DEBUG [1485941351.02] /usr/local/bin/svtplay-dl/svtplay_dl/utils/__init__.py/request: HTTP getting u'http://5925bfc751bcf2add8ef732b7ddd4ddf-httpcache0-03837-cacheod0.dna.qbrick.com/03837-cacheod0/_definst_/smil:ncode/2017-02-01/expr7f6ed2c951864646b0b23f3312a55af9_742291828/BM_Dagel_Nifty_Fifty_170201_576p/chunklist_b1800000.m3u8'
INFO [1485941351.18] /usr/local/bin/svtplay-dl/svtplay_dl/output.py/output: Outfile: lardomar.av.kollapsen.nifty.fifty.ts

None working:

svtplay-dl http://www.di.se/play/borsmorgon/lardomar-av-kollapsen-nifty-fifty/ --verbose
DEBUG [1485941409.98] /usr/local/bin/svtplay-dl/svtplay_dl/utils/__init__.py/request: HTTP getting 'http://www.di.se/play/borsmorgon/lardomar-av-kollapsen-nifty-fifty/'
ERROR [1485941410.6] /usr/local/bin/svtplay-dl/svtplay_dl/__init__.py/get_one_media: Cant find token for video
qnorsten commented 7 years ago

Do Dagens industri only have videos from expressen? or do they also have self hosted videos or other videos? If they only have videos from expressen it is just a matter to add di.se to the supported_domains parameter at line 15 in expressen.py

MR-2 commented 7 years ago

@qnorsten I'm not entirely sure about that but I can't find any videos that would suggest anything else either.

qnorsten commented 7 years ago

Just looked at it a little more seem like at least Di Gassel and Di Weekend is hosted on http://video-cdn.di.se/ so guess some more coding is needed to properly implement di.se but should be doable.

MR-2 commented 7 years ago

@qnorsten adding di.se to expressen.py fixes the main issue of this ticket and would be a fix for the majority of the content that they're publishing right now.

MR-2 commented 7 years ago

Noticed that Di Podd are using acast. Which is using plain mp3's. Would be nice if this would be implemented also.

spaam commented 7 years ago

url to that @MR-2 ?

spaam commented 7 years ago

i guess we should rewrite the "probe" thing so it can detect things like this.

MR-2 commented 7 years ago

http://www.di.se/podcast/makroradet/

https://acastprod.blob.core.windows.net:443/media/v1/3dc8cf6e-d63d-4717-acc1-c3272d3827e5/makrora-det1-170125-iycyrkcu.mp3

spaam commented 7 years ago

the thing in service/__init__.py with the generic can detect the expressen video. but di.se is in the line of supported_domains in service/picsearch.py , because of that it get higher priority and try to use that one instead.

MR-2 commented 7 years ago

They're using a lot of different services so it's a massive mess. This is the first time I have seen acast. Acast it self are used by other services so it might be a good idea to maybe make a separate feature request for that?

spaam commented 7 years ago

if you want to have support for acast, create a new ticket for that :)