1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-28 06:04:17 +01:00
Commit Graph

230 Commits

Author SHA1 Message Date
Johan Andersson
7c7565ea5d svtplay: using -A will try to download same episode twice
fixes: #543
2017-01-31 23:42:04 +01:00
Johan Andersson
be471e9aab svtplay: fix subtitles after the change on svtplay.se
fixes #535
2017-01-27 02:10:46 +01:00
Johan Andersson
dac1b66ce4 svtplay: fixing some crashes after latest update.
fixes #528
2017-01-26 21:54:58 +01:00
Johan Andersson
bc7ccc5918 svtplay: don’t crash if we cant find url for subtitle.
fixes #511
2017-01-02 18:32:33 +01:00
Johan Andersson
92323375fc naming: write leading zeros in episodes and seasons in a better way 2016-12-05 21:52:42 +01:00
Johan Andersson
a9c6ad5e78 svtplay: don’t crash if we can’t find any video 2016-11-06 19:48:22 +01:00
Johan Andersson
2286ce6e02 svtplay: remove unused imports 2016-11-06 15:24:53 +01:00
Johan Andersson
fb0b1d74fe svtplay: no need for find_video_id 2016-11-06 15:10:38 +01:00
Johan Andersson
44bc008d07 svtplay: return direct if we can’t find video info 2016-11-06 14:55:43 +01:00
Johan Andersson
15a1fe2fcf svtplay: fix naming of filenames
fixes #481
2016-11-06 14:52:11 +01:00
Johan Andersson
d1ee50466b svtplay: use the same dash condition for all dash versions 2016-11-06 12:58:32 +01:00
Johan Andersson
59456c799f svtplay: fix -A again after the svtplay move away from redux 2016-10-31 19:14:29 +01:00
Johan Andersson
17c1ff4b6d svtplay: they changed to key again so -A stopped working 2016-10-19 14:20:36 +02:00
Johan Andersson
fa590117de fetcher: handle errors from parsing playlists 2016-10-16 19:35:38 +02:00
Johan Andersson
16e1661efd svtplay: they changed the hostname for api calls
fixes #475
2016-10-16 19:20:42 +02:00
Johan Andersson
d0bca585e7 svtplay: fix so -A work again
fixes #466
2016-10-04 22:34:50 +02:00
Johan Andersson
fc9600b23b svtplay: support for dash segmented files 2016-09-26 00:43:23 +02:00
Johan Andersson
b156849495 svtplay: fix so sista-chansen work again
fixes #451
2016-09-15 08:53:49 +02:00
Johan Andersson
61b512849b svtplay: they started to use single quotes instead of double.
fixes #451
fixes #449
2016-09-14 18:55:33 +02:00
Johan Andersson
b1859b1f6b svtplay: support for alt streams
in some cases the akamai one does not work.
we should make this prettier..
2016-09-10 17:30:04 +02:00
qnorsten
a12ff19606 svtplay: added support for direct link to rss.xml with -A 2016-08-24 00:42:49 +02:00
qnorsten
d2e9edf1e3 svtplay: Fix for sista-chansen. GridStore have been renamed GridPageStore. 2016-08-23 14:27:21 +02:00
Johan Andersson
f807e67425 svtplay: add support to download genre with -A
fixes: #312
2016-08-20 15:51:58 +02:00
Johan Andersson
ba35ec265b svtplay: Add support for sista-chansen with -A
fixes: #325
2016-08-20 13:52:19 +02:00
Johan Andersson
dfcae7456e svtplay: in some cases there is no season slug for videos 2016-07-11 10:44:33 +02:00
Johan Andersson
12f8a47415 svtplay: download all episodes with 'visa fler'
fixes: #407
2016-06-30 01:20:31 +02:00
Johan Andersson
fa730a5564 remove options in argument for exclude 2016-05-14 22:54:30 +02:00
Johan Andersson
af66859dd5 get_one_media: move force_subtitle to main function
with this it will work for every site with subtitles
2016-05-14 22:38:23 +02:00
Johan Andersson
e523141a04 support for dash streams 2016-03-26 21:38:31 +01:00
Johan Andersson
cad24eebd4 svtplay: it should be parse.path to detect klipp 2016-03-22 22:26:15 +01:00
Johan Andersson
b9c8851ab1 svtplay: more ways to detect embedded videos or clips 2016-03-20 23:21:21 +01:00
Johan Andersson
05a20520b0 svtplay: fix embedded videos on svt.se 2016-03-17 16:57:58 +01:00
Johan Andersson
65dc028a9e svtplay: öppetarkiv cant find program name sometimes
fixes: #348
2016-03-15 21:19:04 +01:00
Johan Andersson
e1459fab2f svtplay: need to encode the string before hashing it
fixes #344
2016-02-07 20:10:36 +01:00
Johan Andersson
9274870f81 svtplay: unused import 2016-01-10 20:58:30 +01:00
Johan Andersson
caf936947f svtplay: update the data from the new vid 2016-01-10 20:43:10 +01:00
Johan Andersson
5d61cb9371 svtplay: use the data we already have 2016-01-10 20:42:23 +01:00
Johan Andersson
00114f6750 svtplay: another videoid from the url 2016-01-10 20:36:13 +01:00
Johan Andersson
e895e02d70 svtplay: move find video id into its own function 2016-01-10 20:36:13 +01:00
Johan Andersson
c5460b999d svtplay: dont include other in the filename
Sometimes other is the same as name.
fixes #319
2016-01-03 02:43:23 +01:00
Johan Andersson
e0ad3b9967 svtplay: öppetarkiv still use the old names for format 2016-01-03 02:43:23 +01:00
Johan Andersson
4237021bc7 svtplay: it should be websrt and not wsrt 2015-12-28 11:41:39 +01:00
Johan Andersson
0a20279a94 svtplay: we should check if the user is using svtplay.se 2015-12-28 11:41:15 +01:00
Johan Andersson
cfea570432 svtplay: use sha256 of the version string as id 2015-12-27 20:55:10 +01:00
Johan Andersson
66898565b3 svtplay: support for the next version of the page.
video id is left to fix... dunno how to do it in a good way
2015-12-27 14:40:27 +01:00
Johan Andersson
b5ea350c0f Move options to when we init the service class 2015-12-26 11:46:14 +01:00
Johan Andersson
cfbb068474 svtplay: simplify json url 2015-10-29 18:08:25 +01:00
Olof Johansson
647fed8bda svtplay: Catch media without any videoReferences
This happens when they publish information about the TV episode before
publishing the video stream. Probably due to some bug in SVT Play. The
web player is also unable the play the video, reporting "Can't play
the program, try again later".
2015-10-25 15:50:52 +01:00
Johan Andersson
fa05480327 reorder arguments for hlsparse and hdsparse 2015-10-04 14:37:16 +02:00
Johan Andersson
28581838b0 svtplay: show the right url when it can’t find the json page. 2015-10-02 10:21:11 +02:00
Johan Andersson
dc2cc0294c pip8. expected 2 lines found 1 2015-09-15 20:10:32 +02:00
Johan Andersson
1e6de72d64 Better excluding message
fixing #198
2015-09-06 23:04:48 +02:00
Johan Andersson
acf526c54a Show only one error message instead of two 2015-09-06 14:19:10 +02:00
Johan Andersson
086ae79482 svtplay: this need to be text 2015-09-01 23:53:13 +02:00
Johan Andersson
082f167245 more requests fixes for get_urldata.
dont check the first byte
2015-08-31 22:04:59 +02:00
Johan Andersson
331de0a70f replace self.http.get with our own function with debug info 2015-08-31 19:45:15 +02:00
Johan Andersson
d51e513c17 More request fixes 2015-08-30 11:27:31 +02:00
Johan Andersson
84ee181f5b adding request support.
still need some more work
2015-08-30 00:06:20 +02:00
Johan Andersson
5a54105ccc output: use the right slash for the right platform
fixes #251
2015-08-24 23:02:28 +02:00
Johan Andersson
ea014f27d2 svtplay: seperate format and output json. 2015-08-24 23:02:28 +02:00
Johan Andersson
749d00ac82 svtplay: use context instead of statistics for filename 2015-04-16 21:58:48 +02:00
Johan Andersson
fce27d5736 svtplay: Grab all episodes from the new program page.
fixes #216
2015-03-08 00:44:26 +01:00
Johan Andersson
72f04e3b47 svtplay: don’t crash when we can’t get any HLS streams 2015-02-01 09:09:37 +01:00
Johan Andersson
6a374ffa06 Move hdcore check to utils/get_http_data 2015-01-18 18:01:41 +01:00
Johan Andersson
a84dd4077f pylint fixes 2015-01-05 21:52:34 +01:00
Johan Andersson
60d2a01f16 svtplay: add leading 0 in episodes <10 2014-12-29 20:02:49 +01:00
Johan Andersson
9c9d99a035 svtplay: two digits for season number 2014-12-28 16:08:50 +01:00
Johan Andersson
6561f06fb3 svtplay: this is already on False 2014-12-28 15:23:54 +01:00
Johan Andersson
5893ffd44b svtplay: support for öppetarkiv
this will only work with those with episodes in the name.

this fixes #140
2014-12-28 14:33:25 +01:00
Johan Andersson
008d05d2c1 svtplay: remove arkiv from the filename 2014-12-28 14:18:16 +01:00
Johan Andersson
4519897cfe svtplay: Add season and episode info in the filename 2014-12-28 13:57:50 +01:00
Johan Andersson
a9cfc70393 svtplay: don’t try to parse !json data. 2014-12-25 23:57:45 +01:00
Johan Andersson
f5eb3c8749 Support for exclude filenames with WORD in them.
this fixes #190
2014-12-22 17:41:40 +01:00
Johan Andersson
3fa00d18be Handle error from get_http_data 2014-12-22 11:02:03 +01:00
Johan Andersson
063242b365 svtplay: subtitles didn’t get the right filename 2014-12-22 10:04:32 +01:00
Johan Andersson
e882b59635 svtplay: support for downloading lastest X episodes 2014-12-21 13:01:51 +01:00
Johan Andersson
cecbcda162 svtplay_dl: we want to see the data not the error code.. 2014-12-17 21:05:34 +01:00
Johan Andersson
67b3c8bb54 Rewrite http request handling. 2014-12-08 23:07:02 +01:00
Johan Andersson
06467d5bab svtplay: Check suburl instead of subtitle 2014-11-28 23:44:05 +01:00
Johan Andersson
b540fb8992 svtplay: Better error message 2014-11-26 16:12:39 +01:00
Johan Andersson
be75c47419 svtplay: http-rewrite 2014-11-26 16:03:34 +01:00
Johan Andersson
75fe876c90 svtplay: unused subtitle variable 2014-11-25 21:47:49 +01:00
Johan Andersson
cd9cc95dfa Remove unused import sys. 2014-11-25 21:47:29 +01:00
Johan Andersson
0f93c5c1ce Return instead of sys.exit 2014-11-25 21:46:33 +01:00
Johan Andersson
9624fbdcaf svtplay: just return if we can’t find any video. 2014-11-25 19:03:24 +01:00
Johan Andersson
dcc1367250 subtitle: refactor so we can reuse the try-except-thing 2014-11-25 19:03:23 +01:00
Johan Andersson
0e65654a5a HDS: show an error message when we see DRM files. 2014-10-12 23:31:12 +02:00
Johan Andersson
782ad2854e service: no need to check video streams when we force subtitles 2014-09-21 19:12:17 +02:00
Johan Andersson
f249c3c406 svtplay: fix unboundlocal error for subtitle
this fixes #130
2014-09-21 18:51:26 +02:00
Johan Andersson
96f5384e77 svtplay: use options.service instead of hardcoded service name in format string. 2014-08-27 22:59:31 +02:00
Johan Andersson
a8c95d455e svtplay: support for the new output mode 2014-08-27 22:41:38 +02:00
Johan Andersson
0c6b458e5e svtplay: hdcore 3.3.0 2014-07-10 18:08:48 +02:00
Johan Andersson
b8ae4e68ac svtplay: they started to add query string on their hds streams 2014-07-01 19:19:00 +02:00
Johan Andersson
3f4bdd58d8 service: copy options to fetcher 2014-06-07 20:48:54 +02:00
Johan Andersson
b3ce95bdb1 svtplay: Unused import HDS 2014-06-02 21:27:51 +02:00
Johan Andersson
a38a077af5 svtplay: only yield when have have a subtitle. 2014-06-02 21:27:50 +02:00
Johan Andersson
383c0650d7 hds: parse and kwargssupport 2014-06-02 21:27:50 +02:00
Johan Andersson
188e47517c services: parse hls playlist first. 2014-06-02 21:27:50 +02:00
Johan Andersson
f5cf37c4a9 remove old subtitle functions from kanal5 and svtplay 2014-06-02 21:27:49 +02:00
Johan Andersson
4c50978acf svtplay: yield the subs 2014-06-02 21:27:49 +02:00
Johan Andersson
24cdfdcc31 svtplay: it should be elif and not if 2014-06-02 21:27:49 +02:00
Johan Andersson
3124e4796e svtplay: convert into new video fetcher 2014-06-02 21:27:48 +02:00
Olof Johansson
5deeb84fc9 Break out OppetArkiv to subclass of Svtplay 2014-05-01 20:07:55 +02:00
Johan Andersson
e05b1c2583 svtplay: basic svtflow.se support 2014-04-27 09:05:41 +02:00
Johan Andersson
45f9d81007 svtplay: NoneType is not a valid execpt type. 2014-04-12 21:07:53 +02:00
Johan Andersson
cba3bed554 svtplay: all episodes for öppet arkiv. 2014-04-03 21:02:51 +02:00
Johan Andersson
5e1e6dbbc9 subtitle: a way to download only subtitle. 2014-03-21 21:01:00 +01:00
Anders Waldenborg
6799899bcf Add --all-episodes option (for svt only currently) 2014-02-18 19:00:20 +01:00
Anders Waldenborg
baa8d76551 Add get_urldata() method to service
self.get_urldata() is eqivalent to get_http_data(self.url), but
also caches the data, so no additional requests are made if it
is called multiple times (e.g when grabbing title or downloading
thumbnail).

Generic().get(url) still causes it to be fetched an extra time.
2014-02-18 19:00:20 +01:00
Johan Andersson
0a88eb1009 svtplay: sometimes subtitleReferences is None 2014-02-11 18:16:26 +01:00
Anders Waldenborg
b1871b3834 Add --thumbnail
Names thumbnails as $basename.tbn (Hi xbmc!)
2014-01-25 22:57:50 +01:00
Anders Waldenborg
9804d80302 Split subtitle getting to separate method 2014-01-25 22:57:50 +01:00
Anders Waldenborg
f331a653b6 Move url to object attribute 2014-01-25 22:57:50 +01:00
Johan Andersson
08be2f55cb svtplay: add support for beta.s.s 2014-01-16 12:33:54 +01:00
Olof Johansson
9f9bcad0c7 Add default handle method in Service base class
The default handle method will look for a supported_domains attribute
(a list), containing the supported domains. The subclassed service
class can of course override this if other means of determining support
is needded.
2014-01-01 16:22:07 +01:00
Johan Andersson
9345284547 Make pylint bit happier 2013-12-30 01:43:59 +01:00
Johan Andersson
8df8823893 svtplay: check for ?, if it exists remove it from json request. 2013-11-14 22:46:08 +01:00
Johan Andersson
26bd057689 svtplay: only check swf for rtmp stream 2013-11-14 22:44:46 +01:00
Johan Andersson
dfcd714429 svtplay: replace some urlmatchning with urlparse 2013-10-21 14:01:52 +02:00
Johan Andersson
71b1b585d0 svtplay: fixing a regression from last version 2013-10-14 20:05:03 +02:00
Johan Andersson
0cec19b780 svtplay: correct condition for rtmp-streams 2013-10-08 18:36:23 +02:00
Johan Andersson
d3b181f90e svtplay: bring back rtmp support 2013-10-08 15:27:00 +02:00
Johan Andersson
49a92b98f8 svtplay: they removed playertype from jsonfile. 2013-05-06 12:17:46 +02:00
Johan Andersson
f7760ee640 Adding missing r prefixes to regex string 2013-05-05 12:57:42 +02:00
Olof Johansson
eef049cc0c hds: remove swf argument (it was unused) 2013-04-21 13:45:43 +02:00
Johan Andersson
4ebf565652 svtplay: support for oppetarkiv.se 2013-04-16 13:18:40 +02:00
Johan Andersson
fc6a91c03a svtplay: right subtitle variable 2013-03-24 20:27:35 +01:00
Johan Andersson
15af0a5418 svtplay: right subtitle url 2013-03-24 20:24:34 +01:00
Johan Andersson
df70896c84 import subtitle functions 2013-03-24 20:24:08 +01:00
Johan Andersson
cfd20232ab Rename module from lib/svtplay to lib/svtplay_dl
less confusion with the service.
2013-03-17 19:55:19 +01:00