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

265 Commits

Author SHA1 Message Date
Johan Andersson
67ad23a8b3 get_one_media: handle international character in output
this fixes #233
2015-04-29 15:06:18 +02:00
Johan Andersson
29612f4f11 get_one_media: fixes issues with filenames with “, ‘ and \ in windows
this fixes #230
2015-04-27 22:25:56 +02:00
Johan Andersson
6f20126ff7 facebook: support for downloading public videos. 2015-03-31 20:49:08 +02:00
Johan Andersson
1d3f3ac96f Prepare for release 0.10.2015.03.25 2015-03-25 00:17:30 +01:00
Jimmy Axenhus
ae8e768b51 Add a new command line switch --get-url that prints the URL instead. 2015-03-24 21:10:01 +01:00
Olof Johansson
2265d544b9 Synchronize manual with --help text 2015-03-21 18:36:31 +01:00
Johan Andersson
bcccfd3e86 New version 0.10.2015.01.28 2015-01-28 22:34:42 +01:00
Johan Andersson
68854fc53a get_media: they to the same thing so better have fewer lines 2015-01-28 20:50:10 +01:00
Johan Andersson
cc72aa341a Handle raw .m3u8 and .f4m links better. 2015-01-28 19:00:31 +01:00
Johan Andersson
4ae9a99fdc get_media: service_handler need sites 2015-01-28 18:33:15 +01:00
Johan Andersson
f3c733bb56 Move sites variable to root dir to fix cyclic import. 2015-01-28 18:26:50 +01:00
Johan Andersson
fd4c5fb385 get_one_media: don’t try to run .find on undefined variable 2015-01-25 13:54:38 +01:00
Johan Andersson
6763f33f94 options: if fource-subtitle is set, set subtitle to true. 2015-01-18 16:39:55 +01:00
Johan Andersson
2451e3fc45 New version 0.10.2015.01.05 2015-01-05 22:41:50 +01:00
Johan Andersson
b09b4c17f5 main: --list-quality option 2015-01-05 22:40:40 +01:00
Johan Andersson
0b9eb59d36 main: better help message for -H 2015-01-05 22:00:18 +01:00
Johan Andersson
a84dd4077f pylint fixes 2015-01-05 21:52:34 +01:00
Johan Andersson
b2b94bb175 New version 0.10.2014.12.26 2014-12-26 00:41:22 +01:00
Johan Andersson
29e52a4f3c options: don’t start at zero.
this fixes #195
2014-12-26 00:40:14 +01:00
Johan Andersson
e2ba77309c New version 0.10.2014.12.25 2014-12-26 00:00:05 +01:00
Johan Andersson
e53a2741da get_media: do not try to parse episodes when we can’t find any.
this fixes #194
2014-12-25 23:55:53 +01:00
Johan Andersson
7671a26810 get_media: catch urlerror here? 2014-12-25 23:48:34 +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
113fbbfd88 option to download last X episodes 2014-12-21 13:01:09 +01:00
Johan Andersson
67b3c8bb54 Rewrite http request handling. 2014-12-08 23:07:02 +01:00
Johan Andersson
e94975b256 subtitle: support for cookies 2014-11-25 19:03:24 +01:00
Johan Andersson
8ceb3ea56d More rewrite 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
db5b7dd15e main: improve quality help text 2014-11-25 14:34:43 +01:00
Göran Gustafsson
b3811e7409 Menu fix 2014-11-23 10:31:33 +01:00
Johan Andersson
52c3ce8977 New version 0.9.2014.11.16 2014-11-16 22:11:18 +01:00
Johan Andersson
e03e9cfc36 New version 0.9.2014.10.23 2014-10-23 00:06:00 +02:00
Johan Andersson
72e8a9f484 New version 0.9.2014.10.13 2014-10-13 00:19:26 +02:00
Johan Andersson
dc46471108 get_one_media: Don’t try downloading files when we can’t find any. 2014-10-12 23:53:42 +02:00
Olof Johansson
b59f413a22 Fix syntax error caused be recent change to log fmt 2014-10-12 23:41:44 +02:00
Olof Johansson
e05a7cd211 Get rid of some unnecessary thumbnail related output
Also, this change also makes svtplay-dl print an error if thumbnail was
requested but we write to stdout (--output -).
2014-10-12 21:30:33 +02:00
Olof Johansson
f739faca40 Get rid of some indentation by inverting conditionals 2014-10-12 21:29:04 +02:00
Olof Johansson
fb0168033d Log what protocol/bitrate we selected 2014-10-12 21:27:33 +02:00
Olof Johansson
1796a14007 logging: print log level name first on line when verbose 2014-10-12 21:27:28 +02:00
Johan Andersson
2a472cbf67 main: change help message for resume 2014-10-06 23:04:14 +02:00
Johan Andersson
619435eff1 get_media: create dir when it does not exists.
if we output to a nonexistent directory, create it.
this fixes #131
2014-09-21 20:30:28 +02:00
Johan Andersson
ef4c79256d New version 0.9.2014.08.28
Way to long since last release..
2014-08-28 19:47:39 +02:00
Johan Andersson
7f7d79a3db output: Don’t download the file if we already have it for some other fetcher 2014-08-27 22:40:31 +02:00
Johan Andersson
79b9c15977 init: removing unused imports. 2014-08-19 15:21:27 +02:00
Johan Andersson
4209f14e26 Fixing some more warnings. 2014-08-12 00:15:46 +02:00
Johan Andersson
ec3e8fb131 Fixing some landscape.io warnings 2014-08-12 00:08:51 +02:00
Johan Andersson
ebe21c49c5 get_one_media: override filename if it is set automagic 2014-08-11 21:24:35 +02:00
Johan Andersson
c19ba14e4c options: sync options from options parser 2014-08-11 21:00:19 +02:00
Olof Johansson
6719cd0e15 svtplay_dl: remove unnecessary pass statement
(Reported by pylint)
2014-07-22 09:36:33 +02:00
Johan Andersson
52a18ee7ca main: better help text to -H and -P 2014-07-13 16:06:35 +02:00
Johan Andersson
a52fbe6985 select_quality: move preferred option to get_one_media 2014-07-13 16:03:03 +02:00
Johan Andersson
0caf19b309 main: better help text for live flag. 2014-06-24 22:56:12 +02:00
Johan Andersson
402fca5bfc get_one_media: display error message when we can’t find any videos. 2014-06-23 21:24:34 +02:00
Johan Andersson
b4638d0bb7 get_one_media: show an error message when we cant find any streams 2014-06-18 21:10:05 +02:00
Johan Andersson
3f4bdd58d8 service: copy options to fetcher 2014-06-07 20:48:54 +02:00
Johan Andersson
e87c236c51 option to choose which download method is preferred. 2014-06-02 21:27:51 +02:00
Johan Andersson
3398c8f14c get_one_media: force stop when --force-subtitle is used 2014-06-02 21:27:50 +02:00
Johan Andersson
a857f1d906 get_one_media: select quality 2014-06-02 21:27:50 +02:00
Johan Andersson
895623f601 __init__: support for yield 2014-06-02 21:27:49 +02:00
Olof Johansson
24750ed1d6 Print newline after Ctrl+C
Fixes #93.
2014-05-02 12:07:37 +02:00
Johan Andersson
fb82005658 New version 0.9.2014.04.27 2014-04-27 09:06:47 +02:00
Johan Andersson
fd35357de0 We should catch KeyboardInterrupt in __init__.py
We don't catch it if someone install it via setup.py with the old fix.
2014-04-02 19:32:35 +02:00
Johan Andersson
5449e26766 New version 0.9.2014.04.01 2014-04-01 19:21:50 +02:00
Johan Andersson
0659214816 get_one_media: This will fix #80.
the problem is that c:\test will became c:_tab_est and that is a wrong
filename. because \t is tab.
2014-03-24 21:54:03 +01:00
Johan Andersson
5e1e6dbbc9 subtitle: a way to download only subtitle. 2014-03-21 21:01:00 +01:00
Olof Johansson
f5aceffad7 svtplay_dl: silence pylint warning when using % with log 2014-03-19 23:03:31 +01:00
Johan Andersson
ebbbef85c5 get_media: change order on Generic and service_handler
Generic is now a fallback if we can't find any site that handles the url.
bonus with this is one less fetch of data at the beginning if we have
a site that handles that url.
2014-02-23 11:52:22 +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
Anders Waldenborg
5fe5eb40f2 Fix automatic filename generation when output is a directory 2014-02-18 18:59:18 +01:00
Johan Andersson
35827e7e6e New version 0.9.2014.02.15 2014-02-15 11:33:25 +01:00
Olof Johansson
f695063307 Reraise UIExceptions when called with --verbose 2014-02-11 18:46:54 +01:00
Olof Johansson
b9107b20b6 hls: Error on live streams
This can be overriden using the --force flag, but the output may
be a bit disappointing --- only the current state of the HLS
playlist is downloaded, and no reload is attempted.
2014-02-11 18:46:53 +01:00
Olof Johansson
045ef96252 logging: adjust message format, <level>: <message> 2014-02-11 18:46:53 +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
Anders Waldenborg
d6ab73679e Improve title to filename conversion.
Does unicode NFD decomposition on the string before stripping non ascii chars.

This means that chars like 'ü' is decomposed into 'u' and '¨', which mean that
when non-ascii chars are dropped we will still keep the 'u'.

Fixes #60
2014-01-25 22:57:37 +01:00
Anders Waldenborg
712901cc8e Decode html entities in title tag 2014-01-25 13:01:01 +01:00
Anders Waldenborg
06023e5b04 Add --verbose option 2014-01-25 13:01:01 +01:00
Anders Waldenborg
db426b804c Fix slow regex for grabbing title-tag.
Changes regex to not allow matching overlapping matches, which
made compilation of the regex noticeable slow.
2014-01-25 13:01:01 +01:00
Johan Andersson
560145a4ff New version 0.9.2014.01.18
python3 support for HDS, more viaplay sites and hd support for urplay
2014-01-18 18:56:17 +01:00
Johan Andersson
7e591c2733 get_media: dont add options.output to tmp variable 2014-01-16 20:57:30 +01:00
Johan Andersson
b14ba49f74 get_media: output to dir and get automagic name again.
removed it in f51d804d. but this one is better
2014-01-16 19:46:28 +01:00
Johan Andersson
89ab7259b7 New version with for urplay 2014-01-03 16:55:56 +01:00
Johan Andersson
c7dfdcf6f5 New version with fixes for viaplay, urplay and dr. 2014-01-03 16:40:19 +01:00
Johan Andersson
959c3ad599 get_media: with this it takes forever to get the titel. 2014-01-03 12:23:44 +01:00
Johan Andersson
33bb2c5c13 Replace sys.version_info with pyX 2013-12-30 01:35:08 +01:00
Johan Andersson
b09fc7b319 get_media: remove html entities in titel 2013-12-30 01:12:38 +01:00
Johan Andersson
f51d804d4f get_media: options.output could never happen 2013-12-30 01:02:42 +01:00
Johan Andersson
14b93c0cef New version
tv4play fixes
outputfilename fix when title tag is on more then one line.
2013-12-11 17:25:53 +01:00
Johan Andersson
dbcf83e519 options: set default quality to 0 2013-12-11 17:22:46 +01:00
Johan Andersson
facfc6833b output: fixes a problem when title-tag is on multiple lines. 2013-12-11 17:19:15 +01:00
Johan Andersson
8071ca12a3 New version: svtplay and vimeo fixes 2013-11-15 00:27:49 +01:00
Johan Andersson
50aab78454 New version with svtplay and subtitle_tt fix 2013-10-28 20:22:18 +01:00
Johan Andersson
e3977bf524 New version 2013-10-14 20:24:18 +02:00
Johan Andersson
d549f7c374 New version 2013-10-08 22:17:13 +02:00
Johan Andersson
6f7cd4bcd0 get_media: Check for embed videos first.
sydsvenskan.se are using qbrick for their own videos.
but they used tv4play.se for some videos ex: obama visit in sweden.
2013-09-04 15:02:58 +02:00
Johan Andersson
f918821145 New version with tv10 support 2013-09-03 14:55:46 +02:00
Johan Andersson
3a2a6e8fcc new version 2013-08-31 11:01:37 +02:00
Johan Andersson
feb480a8f1 New version 2013-08-10 21:21:28 +02:00
Olof Johansson
3cfbd6b679 Print help text when called without arguments 2013-07-25 21:05:29 +02:00
Johan Andersson
1b722f188b New version 0.9.2013.05.06 2013-05-06 12:18:38 +02:00
Johan Andersson
f7760ee640 Adding missing r prefixes to regex string 2013-05-05 12:57:42 +02:00
Johan Andersson
aad1993d4e 0.9.2013.04.22 2013-04-22 09:45:10 +02:00
Johan Andersson
7feba77677 Support for Mtvservices (thedailyshow & colbertnation) 2013-04-21 21:51:45 +02:00
Johan Andersson
5ef5e850e4 2013-04-17 2013-04-17 09:42:28 +02:00
Johan Andersson
4ebf565652 svtplay: support for oppetarkiv.se 2013-04-16 13:18:40 +02:00
Johan Andersson
c47fae0cb4 justin.tv: fixes for swf-file 2013-04-14 21:08:12 +02:00
Johan Andersson
1dfc3909f1 update version number 2013-04-02 15:29:36 +02:00
Daniel
0de19d2c11 Option --flexible-quality (-Q) 2013-03-25 19:05:18 +01:00
Johan Andersson
311f9c4d15 Update version number 2013-03-23 16:12:26 +01:00
Johan Andersson
01bb02ea68 Fix so embedded videos works again 2013-03-23 16:11:36 +01:00
Johan Andersson
eeac0feb14 Move get_media into lib. 2013-03-23 15:02:41 +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