Johan Andersson
b0dbe63345
justin: better filenames
2015-05-24 13:59:11 +02:00
Johan Andersson
6f228284cf
justin: refactor get function
2015-05-24 12:37:16 +02:00
Johan Andersson
e1100fa7d4
justin: support for the new vod system
2015-05-23 19:18:04 +02: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
67b3c8bb54
Rewrite http request handling.
2014-12-08 23:07:02 +01:00
Johan Andersson
b505a03d3c
service: replace sys.exit with return
2014-11-25 19:03:24 +01:00
Johan Andersson
3f4bdd58d8
service: copy options to fetcher
2014-06-07 20:48:54 +02:00
Johan Andersson
218f61b95d
justin: we don't want to return false here.
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
47818019ab
justin: convert into new video fetcher
2014-06-02 21:27:48 +02:00
Olof Johansson
d6eba115ba
justin: adjust error msg in case of type being unknown
2014-03-19 23:29:16 +01:00
Olof Johansson
2aae49003a
justin: support archived content from twitch and justin
...
Archive contents have URLs that look like justin.tv/<channel>/b/<id> and
twitch.tv/<channel>/b/<id>. Otherwise, the implementation is equivalent with
that of _get_video, which is now renamed to _get_chapter.
Closes #67 .
2014-03-19 23:28:42 +01:00
Olof Johansson
0efff3c2fe
Remove unused imports
2014-03-19 23:03:31 +01:00
Olof Johansson
c906b989c2
justin: don't assume Exception has message attribute
...
In Python3, the Exception class does not have a message attribute.
Stringifying the Exception object results in the same thing though,
and it works in both Python 2 and 3.
2014-03-19 22:48:40 +01:00
Olof Johansson
3aef528b5d
justin: Add HLS support
2014-02-08 17:40:25 +01:00
Olof Johansson
159d0d929d
justin: refactoring
...
Break out logic for video and channel fetching to functions and introduce a
JustinUrlException class, that represents faulty URLs.
2014-02-08 17:40:25 +01:00
Anders Waldenborg
f331a653b6
Move url to object attribute
2014-01-25 22:57:50 +01:00
Olof Johansson
e838384c52
Support supported_domains regexp for services
...
Lets services with more complex domains (like domains with language/country
codes) use a regular expressions that will match the supported domains for
the handles() method.
2014-01-01 16:22:07 +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
Olof Johansson
768558a0a6
justin: exit with failure if regexp does not match
...
This change will avoid an ugly stacktrace, but the issue is still present. The
"real" error message won't be drowned out though.
2014-01-01 16:06:54 +01:00
Johan Andersson
33bb2c5c13
Replace sys.version_info with pyX
2013-12-30 01:35:08 +01:00
Johan Andersson
fcd83a2a61
justin: support for non-subscriber channels
2013-08-31 10:59:20 +02:00
Olof Johansson
7da961b511
justin: add missing verb to error message
2013-08-09 18:02:57 +02:00
Johan Andersson
358803c722
justin: new path for vod files.
2013-05-29 23:21:14 +02:00
Johan Andersson
f7760ee640
Adding missing r prefixes to regex string
2013-05-05 12:57:42 +02:00
Olof Johansson
22d06ba0fe
Disable pylint warning E1103 when using urlparse
...
pylint has issues with urlparse, e.g:
Instance of 'ParseResult' has no 'query' member (but some types could not be inferred)
2013-04-27 13:17:00 +02:00
Olof Johansson
bd1ae14e53
Isolate py3/2.7 conditional imports to own modules
2013-04-21 13:45:43 +02:00
Olof Johansson
e9bd5b8004
Make all services inherit svtplay_dl.service.Service
2013-04-21 13:45:43 +02:00
Johan Andersson
514ed7e546
python3 fixes, urlparse and addinfourl.
2013-04-14 21:26:39 +02:00
Johan Andersson
c47fae0cb4
justin.tv: fixes for swf-file
2013-04-14 21:08:12 +02: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