Johan Andersson
09eac51d6c
subtitle: remove unused cookies variable
2018-05-13 13:18:29 +02:00
Johan Andersson
1b1cde811c
subtitle: use config instead of options
2018-05-13 13:09:27 +02:00
Johan Andersson
92763977ed
subtitle: better represent line
2018-05-13 13:08:27 +02:00
Johan Andersson
f300e24ca3
more options to config replaces
2018-05-13 13:07:34 +02:00
Johan Andersson
ca49366002
Options to config
2018-05-13 13:06:45 +02:00
Johan Andersson
a051418dab
utils: move functions out of init to its own files.
2018-05-13 12:10:19 +02:00
Johan Andersson
903a4ae71d
No need for utils.io
2018-05-13 12:09:27 +02:00
Johan Andersson
b8c1163852
remove a bunch of is_py. time for py3.
2018-05-13 12:08:11 +02:00
Johan Andersson
083188f8ac
subtitle: we need to tell requests to use utf8 for encoding
2018-02-21 21:29:21 -05:00
Johan Andersson
7b6ceb4737
Flake8 fixes
2018-01-30 20:17:33 +01:00
Johan Andersson
aae1c878bb
subtitle: tv4 subs have a bom headers.
2017-09-17 11:21:04 +02:00
Johan Andersson
e232001003
subtitle.wsrt: urplay only had minutes and seconds
...
fixes #639
2017-06-05 17:31:47 +02:00
qnorsten
a9e1e92ba2
subtitle: use decode_html_entities function
...
use decode_html_entities to decode html entities
2017-03-23 11:43:15 +01:00
qnorsten
a310ceb2a1
Subtitles: Smi-subtitles updated regex to also remove <div tags>
2017-03-21 09:49:36 +01:00
qnorsten
f963b5f755
Subtitles: Smi subtitles, do not remove <i> and replace with space
...
fixes https://github.com/spaam/svtplay-dl/issues/581
2017-03-21 00:32:46 +01:00
Johan Andersson
18a9a1bcf5
subtitle: dont double encode utf8
...
fixes : #507
fixes : #501
2016-12-05 20:45:14 +01:00
Johan Andersson
ec0f2a4feb
subtitle: use HTTP from utils instead of requets.
2016-12-05 19:55:04 +01:00
Johan Andersson
b08d593556
subtitle: don’t crash if we cant download subtitle
...
show a warning that we cant download it.
2016-11-14 21:51:39 +01:00
Linus Karlsson
c436e4c381
subtitle.tt: fix error when calculating end time.
2016-11-01 23:19:54 +01:00
Johan Andersson
b4768ef2f1
subtitle.sami: don’t try to decode None
...
fixes : #477
2016-10-17 21:40:20 +02:00
Johan Andersson
31aaf468c0
subtitle: decode some htmlentities in sami
...
fixes #421
2016-08-01 21:02:38 +02:00
Johan Andersson
f8f25cf2a4
Merge remote-tracking branch 'qnorsten/master' into qnorsten
2016-07-24 12:15:11 +02:00
Johan Andersson
d8b2b8efa6
timestr: leading zero in single digit
2016-06-03 00:09:11 +02:00
Johan Andersson
10a259982e
smi: it should be three decimals and not two
...
this fixes #398
2016-06-01 22:54:11 +02:00
Johan Andersson
c0b4d278b4
sami: dont crash on &
...
this fixes #396
2016-06-01 22:43:39 +02:00
qnorsten
24a1789949
subtitles: --convert-subtitle-colors command added to convert color information in wsrt subtitle files to <font color=""> tags.
2016-05-09 15:10:58 +02:00
qnorsten
a774a8052b
Merge branch 'master' of https://github.com/spaam/svtplay-dl.git into rawsubs
...
# By Johan Andersson (7) and qnorsten (4)
# Via Johan Andersson (2) and qnorsten (1)
* 'master' of https://github.com/spaam/svtplay-dl.git :
urplay: dont crash when there is no label
twitch: Fix so we can get live url again
fetcher: dont print newline when its silent
main: add dash in the help text for preferred
tv4play: free videos with premuim showed up as None
tv4play: fix unicode errors in showname
Fixed missing space error
Some minor code improvments
postprocess: ext includes dot before fileextention
Updated gitignore
Added support for subfix in filename of subtitles, when several languages are available Added command to download all available subtitles for a video (--all-subtitles) Added support to print all the subtitle urls when the get url parameter is used Fixed so subtitle url and stream url get printed if -S and -g but not --force-subtitles parameter is used Added support for downloading all subtitles and auto subfix them with language name for Urplay and Urskola (even when just one subtitle is downloaded)
2016-05-03 22:43:57 +02:00
qnorsten
258a969aa1
subtitle: removed parentesis in if check
2016-04-29 11:51:18 +02:00
qnorsten
d72ff200a6
subtitle: fix so right filename is saved when saving raw subs
2016-04-29 11:51:07 +02:00
qnorsten
e54eb77993
subtitle: fixed syntax error
2016-04-29 11:50:43 +02:00
qnorsten
e2093c9a4d
subtile: minor code improvments
2016-04-29 11:50:17 +02:00
qnorsten
617f519977
subtitle: added command --raw-subtitles to download raw subtitle file also
2016-04-29 11:49:44 +02:00
qnorsten
162901b263
subtitle: added command --all-subtitle to download all available
...
subtitles.
subtitle: Added support for subfix in subtile filename.
urplay: added support to download more than 1 subtitle
Added support to print all the subtitle urls when the get url parameter is used
Fixed so subtitle url and stream url get printed if -S and -g but not --force-subtitles parameter is used
Added support for downloading all subtitles and auto subfix them with language name for Urplay and Urskola (even when just one subtitle is downloaded)
2016-04-29 11:41:34 +02:00
qnorsten
156d60f8de
Fixed missing space error
2016-04-27 19:41:23 +02:00
qnorsten
428d4c5022
Some minor code improvments
2016-04-27 19:37:32 +02:00
qnorsten
56e07188ee
Added support for subfix in filename of subtitles, when several languages are available
...
Added command to download all available subtitles for a video (--all-subtitles)
Added support to print all the subtitle urls when the get url parameter is used
Fixed so subtitle url and stream url get printed if -S and -g but not --force-subtitles parameter is used
Added support for downloading all subtitles and auto subfix them with language name for Urplay and Urskola (even when just one subtitle is downloaded)
2016-04-27 10:37:47 +02:00
Johan Andersson
4d392d6664
subtitle: strip line endings
2016-04-20 18:42:46 +02:00
Johan Andersson
cd75cd5b63
subtitle.tt: dont crash on negative milliseconds.
2016-02-08 21:28:39 +01:00
Johan Andersson
3f04ae2a56
swap place on py2 and py3 checks
2016-01-27 19:49:38 +01:00
Johan Andersson
e1cb21c20a
subtitle: raw type
2015-10-30 00:51:35 +01:00
Johan Andersson
8129a49348
subtitle: we need to tell the file is utf-8 on windows and py3
2015-10-25 17:19:16 +01:00
Johan Andersson
e188ca8f56
subtitle_smi: encode it as iso-8859-1
...
this fixes #282
2015-10-20 00:49:20 +02:00
Johan Andersson
38f18d5eed
subtitle_tt: remove namespace info
2015-10-10 16:31:42 +02:00
Johan Andersson
79c7f82881
subtitle: only convert when its unicode
2015-09-20 16:03:07 +02:00
Johan Andersson
3afb8aa490
subtitle: workaround a bug in requests in ubuntu 14.04 LTS
...
2.2.1 cant convert string from bytes to text right.
fixes #259
2015-09-20 15:15:50 +02:00
Johan Andersson
dc2cc0294c
pip8. expected 2 lines found 1
2015-09-15 20:10:32 +02:00
Johan Andersson
614c9b8ae5
subtitle_wsrt: decode html entities
...
fixes #255
2015-09-01 22:54:32 +02:00
Johan Andersson
6883f31550
subtitle: python3 fixes
2015-08-31 23:19:01 +02:00
Johan Andersson
724af70f49
subtitle: open as text and save it
2015-08-31 22:46:45 +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
84ee181f5b
adding request support.
...
still need some more work
2015-08-30 00:06:20 +02:00
Johan Andersson
63eee40e49
subtitle_wrst: check against int instead of str
...
this fixes #240
2015-06-07 20:10:36 +02:00
Johan Andersson
7950e06e0d
smi: check if data is empty
2015-05-01 22:34:02 +02:00
Johan Andersson
c95c51fa5d
subtitle: missing r-prefix
2015-04-28 23:16:44 +02:00
Johan Andersson
7ed21ae16b
smi: Handle subtitle that starts direct after the previous one.
...
this fixes #225
2015-04-28 23:00:24 +02:00
Johan Andersson
26a5db7a6e
wrst: don’t encode the data to utf8 on python3
2015-04-28 22:59:07 +02:00
Johan Andersson
e449d8c471
subtitle: py3 fixes
2015-03-12 21:39:36 +01:00
Johan Andersson
abd38b55ea
subtitle: smi py3 fixes
2015-03-12 21:33:55 +01:00
Johan Andersson
ec7356aeea
subtitle: rewrite wrst function
2015-03-01 21:44:55 +01:00
Johan Andersson
8f89b00c5e
unused imports
2015-01-25 14:41:29 +01:00
Johan Andersson
a84dd4077f
pylint fixes
2015-01-05 21:52:34 +01:00
Johan Andersson
fb31725ccd
subtitle: use output function instead of the special one for this class.
2014-12-30 21:20:03 +01:00
Johan Andersson
d7d8297811
pylint fixes
2014-12-26 02:04:29 +01:00
Johan Andersson
ef3890d9ec
missing r prefix in regex matches.
2014-12-22 10:20:37 +01:00
Johan Andersson
7d9d2c7680
sami: they started to use : instead of ,
2014-12-15 22:19:58 +01:00
Johan Andersson
a2f66186d4
smi: broken regex is broken.
2014-12-15 22:06:24 +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
dcc1367250
subtitle: refactor so we can reuse the try-except-thing
2014-11-25 19:03:23 +01:00
Johan Andersson
524fe2ce0c
subtitle: catch http errors.
2014-11-25 19:03:23 +01:00
Johan Andersson
65143fb9f7
subtitle_json: only convert to utf8 on py2
2014-11-25 19:02:50 +01:00
Johan Andersson
d836c438b1
subtitle_smi: Empty subtitles.
...
this fixes #180
2014-11-23 13:04:05 +01:00
Johan Andersson
75c508292e
kanal5: Send the cookies to subtitle.
...
super hack workaround for #178
2014-11-16 22:09:16 +01:00
Johan Andersson
9de3961c0b
subtitle: show a warning if subtitle exists.
2014-08-23 13:33:38 +02:00
Johan Andersson
329d149d29
subtitle: inherit from object
2014-07-28 15:53:23 +02:00
Johan Andersson
7d54cff825
subtitle_tt: rewrote the function.
...
this fixes #111
2014-07-09 18:39:18 +02:00
Johan Andersson
bddcbabd0b
subtitle_wsrt: it should be --> and not ->
2014-06-07 21:56:28 +02:00
Johan Andersson
e94f2a74b7
subtitle_wrt: set the right variable to True.
2014-06-07 18:54:51 +02:00
Johan Andersson
53b521248f
subtitle_wsrt: subtract 10 hours when it begins at >9 hours.
...
This fixes #101
2014-06-07 18:51:29 +02:00
Johan Andersson
dbf320d9be
subtitle: we only need one save function.
2014-06-02 21:27:50 +02:00
Johan Andersson
8538496d66
subtitle: bad indentation.
2014-06-02 21:27:49 +02:00
Johan Andersson
8f715bd278
subtitle_tt cosmetics.
2014-06-02 21:27:49 +02:00
Johan Andersson
93596eccad
Move subtitles into its own file
2014-06-02 21:27:49 +02:00