1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 15:14:14 +01:00
Commit Graph

2051 Commits

Author SHA1 Message Date
Johan Andersson
d68b3e3d7a subtitle_filter: rewrite function to work as intended 2021-05-24 20:50:38 +02:00
Johan Andersson
fed357e432 dash: support for vod files when a live video stops 2021-05-23 23:37:21 +02:00
Johan Andersson
0b35220e2f tests: rewrite dash tests 2021-05-23 23:31:21 +02:00
Johan Andersson
1c3d8f114b viafree: set a preferred language on subtitle 2021-05-22 23:01:31 +02:00
Johan Andersson
0fdcb1e1f0 getmedia: make the subtitle section a bit easier to read. 2021-05-22 23:01:26 +02:00
Johan Andersson
cb3ec04b04 hls: add support for subtitles via viafree 2021-05-22 22:55:38 +02:00
Johan Andersson
c0e34dfaac hls: support for different audio streams 2021-05-22 14:29:54 +02:00
Johan Andersson
cffb70e3a8 svtplay: sometimes the titleheading was the same as the name. 2021-05-22 14:02:14 +02:00
Johan Andersson
3d46e85dfc svtplay: add the language to the subtitle. 2021-05-20 14:33:48 +02:00
Johan Andersson
197985b540 dashparse: use the correct subtype. 2021-05-20 14:33:18 +02:00
Johan Andersson
94ed271397 discoveryplus: streams is a list and not a dict 2021-05-18 20:54:19 +02:00
Johan Andersson
c9a606d306 dashparse: handle subtitles after the rewrite 2021-05-16 22:02:20 +02:00
Johan Andersson
0e8e64b478 select_quality: just show a better error message when a specified quality is not available 2021-05-16 21:40:01 +02:00
Johan Andersson
ee940cc207 list_quality: make the output a bit smaller 2021-05-16 21:00:57 +02:00
Johan Andersson
3c3ed9f63c dash: support resolution in the representation element 2021-05-16 15:09:33 +02:00
Johan Andersson
6bb0b5d065 list_quality: align the columns 2021-05-16 13:55:33 +02:00
Johan Andersson
1c47b0602c viafree: modify the hls url little bit 2021-05-16 13:55:33 +02:00
Johan Andersson
6305dbcc9c Add support for audio language and audio role 2021-05-16 13:55:28 +02:00
Johan Andersson
2c5101ad85 discoveryplus: add support for standalone videos
fixes: #1383
2021-05-14 10:12:13 +02:00
Johan Andersson
0ae0b6ae54 Rename old service names to the new one
fixes: #1369
2021-05-13 22:47:14 +02:00
Johan Andersson
494c9e3eb7 Add some tests to dash.parse_date 2021-05-13 13:33:14 +02:00
Johan Andersson
da31b75ec9 output.formatname: slap the extension at the end of the output 2021-05-13 13:32:17 +02:00
Johan Andersson
2f10e1b556 urplay: forgot to fix all-episodes before .) 2021-05-12 22:18:24 +02:00
Johan Andersson
8bcbd5dad4 urplay: fix a crash when getting subtitle.
for some reason they remove which one is default.
now we assume that swedish is the one
fixes: #1382
2021-05-12 21:00:00 +02:00
Johan Andersson
a5e4166068 dash.parse_date: translate nanoseconds to milliseconds
python cant parse those dates.
2021-05-11 00:16:58 +02:00
Johan Andersson
e6379d9a28 postprocess: tell the filenames to be strings.
this is an issue on windows.
2021-05-10 20:51:55 +02:00
Johan Andersson
d5751122f4 fix test_text tests 2021-05-10 12:14:30 +02:00
Johan Andersson
6c172284a8 exclude: convert the filename to a string 2021-05-10 12:09:35 +02:00
Johan Andersson
dcf0e6fa70 viafree: handle multiple subs better 2021-05-09 21:52:46 +02:00
Johan Andersson
2175e8d6a5 postprocess: when merge and all subs do all of them 2021-05-09 21:51:48 +02:00
Johan Andersson
bb09d0fc76 postprocess: the output is an .mp4 file 2021-05-09 21:50:41 +02:00
Johan Andersson
f9718902a9 postprocess: only do merge to mp4 no need for remux. 2021-05-09 21:49:58 +02:00
Johan Andersson
3497e0577d Rewrite how we detect already downloaded files
this will also check if we already downloaded
the files if we already have it or not
2021-05-09 02:13:13 +02:00
Johan Andersson
55bf8edcbe hds is dead. thanks for the time.
No one is using this anymore. flash  is dead
2021-05-09 01:20:32 +02:00
Johan Andersson
1907c545dc dplay: dont crash on empty season
fixes: #1375
2021-05-08 13:39:19 +02:00
Johan Andersson
10e365f695 pyupgrade fixes 2021-04-27 19:44:09 +02:00
Johan Andersson
cd7fa336b1 Get version from git describe with tags
for some reason this work earlier or something.
2021-04-24 16:53:43 +02:00
Johan Andersson
aae55fcc2d discoveryplus: better fix to find correct shows
fixes: #1368
fixes: #1366
2021-04-22 19:59:08 +02:00
Johan Andersson
0dcb01fd5a svtplay: add titleHeading as episodename when episodeHeading is None 2021-04-19 22:34:40 +02:00
Johan Andersson
ce95a23dd8 svtplay: fix a crash downloading clip
fixes: #1363
2021-04-19 22:33:33 +02:00
Johan Andersson
bb9c419469 discoveryplus: in some cases there is no value where we look for season info. 2021-04-18 16:11:14 +02:00
Johan Andersson
7a85dc7d74 Add resolution info to --list-quality 2021-04-18 14:06:25 +02:00
Johan Andersson
4c8ed0de43 discoveryplus: fix detecting seasons
fixes: #1361
2021-04-18 12:53:48 +02:00
Johan Andersson
8805627a21 urplay: for non-series video use title for name
fixes: #1357
2021-04-15 19:51:20 +02:00
Johan Andersson
4d7431f0ad svtplay: forgot fix for all-episodes 2021-04-14 08:22:09 +02:00
Johan Andersson
391af6f13b svtplay: fix a crash related to data keyerror
for some reason they got some issues on their end and have a "error"
where we expected to see a "data" element.
2021-04-13 17:18:44 +02:00
tor
43fe2847b3 Try to get episode number from description 2021-04-13 17:14:58 +02:00
tor
cdf394e7f5 Check if key exists in dict to avoid crash 2021-04-02 19:09:04 +02:00
dksxse
70a1a5f896 Fix nrk video id regex 2021-04-02 19:07:15 +02:00
Johan Andersson
f5573b1c99 tv4play: using -A incorrectly downloaded wrong videos sometimes
fixes: #1346
2021-03-16 22:13:54 +01:00
Johan Andersson
7500477f8d svtplay: fix a crash while using -A in some videos 2021-03-16 18:54:35 +01:00
Johan Andersson
7440e3f12a aftonbladet: tv.a.s stopped working 2021-03-15 13:21:54 +01:00
Johan Andersson
028971b476 svtplay: for some reason they presented the m3u8 file as mpd
fixes: #1341
2021-03-14 19:01:19 +01:00
Johan Andersson
25ea769bc3 svtplay: improve detection of season and episode numbers
fixes: #1342
2021-03-14 18:36:20 +01:00
Johan Andersson
1ec914d370 svtplay: dont crash on non-existing video 2021-03-14 00:09:09 +01:00
Johan Andersson
524b7cb021 dash: add support for more subtitle formats
some files mpd files have vtt subs
make the "bitrate" more static. will help unittest
2021-03-14 00:04:44 +01:00
Johan Andersson
70d83d44eb dash: dont crash on None codec
fixes: #1340
2021-03-14 00:02:21 +01:00
Johan Andersson
c1bfd0fc11 subtitle: stpp support
this is used in dash
2021-03-13 15:17:29 +01:00
Johan Andersson
9b4ed1b4b2 dash: support for multiple adaptionset and subtitles 2021-03-13 14:21:49 +01:00
Johan Andersson
6ef5d61c37 subtitle: fix spelling mistake
Co-authored-by: bartdedecker
fixes: #1339
2021-03-13 00:53:42 +01:00
Johan Andersson
be8e935228 svtplay: new site update 2021-03-12 00:20:30 +01:00
Johan Andersson
b91ca11e85 hls: x-map update 2021-03-12 00:20:18 +01:00
Johan Andersson
cb3612b313 viafree: they have m3u8 subtitles in json
For some reason they got some bad data in the first file that we need to skip
fixes: #1332
2021-03-05 00:42:27 +01:00
awabom
998f51fdf6
urplay: extracting filename metadata - title (and title_nice), season, episode, episodename, id (#1299)
Co-authored-by: Johan Andersson <j@i19.se>
2021-02-28 23:14:34 +01:00
Johan Andersson
4ec553e0ed Add py3.6 changes 2021-02-28 22:05:33 +01:00
Johan Andersson
e423c1cd35 tv4play: new way to find episodes and clips related to the show
fixes: 1327
2021-02-23 23:45:35 +01:00
Johan Andersson
145c81c7fc http: check if split_header value is correct 2021-02-23 23:45:35 +01:00
Christoffer Holmesland
8cd5793ed4 discoveryplus: changed domain check when finding all espisodes 2021-02-20 16:13:16 +01:00
Johan Andersson
68e9906323 svtplay: better way to detect live channels
fixes: 1325
2021-02-20 14:47:37 +01:00
Johan Andersson
32ba3463e0 barnkanalen: fix so it works with the new site
fixes: #1231
fixes: #1325
2021-02-20 14:13:03 +01:00
Johan Andersson
29744a58af urplay: use wsrt subtitles instead of tt
fixes: #1324
2021-02-16 23:58:18 +01:00
Simon Vallebro
0bcf162083 Fixed issue with series with not active episodes. 2021-02-16 23:57:42 +01:00
Johan Andersson
a263a66a49 discoveryplus: identify free and premium better
fixes: #1321
2021-02-14 16:59:21 +01:00
Johan Andersson
664a9e22bb svtplay: fixed a crash downloading a show thumbnail
fixes: #1319
2021-02-10 22:57:27 +01:00
Johan Andersson
774e29a104 disoveryplus: only add showid when we need it 2021-02-10 21:47:43 +01:00
Johan Andersson
a06a138d90 discoveryplus: need showid to get video data
fixes: #1313
2021-02-10 20:45:00 +01:00
Johan Andersson
4ca255b232 discoveryplus: show an error message if we cant find any videos 2021-02-10 20:41:41 +01:00
Johan Andersson
682ecd9763 service: read the config before we setup HTTP class
fixes: #1316
2021-02-09 22:18:04 +01:00
Johan Andersson
9d34704b47 urplay: sometimes it adds country code several times
this happen when you download all subtitles.
2021-02-09 21:51:11 +01:00
Johan Andersson
9e03fcde7f viaplay: try to find correct subtitle based on domain
fixes: #1315
2021-02-09 21:50:15 +01:00
Martin Evald
4aa528bf7a svtplay: fix so it work with the latest update to the website
fixes: #1312
2021-02-07 14:36:19 +01:00
Johan Andersson
a639f9a9db svt: add support for recipe section
fixes: #1310
2021-02-07 12:07:14 +01:00
Johan Andersson
9536e23619 tv4play: change so its the same url we see on desktop 2021-02-05 20:37:58 +01:00
Johan Andersson
d193679855 dplay: add discoveryplus support 2021-01-18 21:48:46 +01:00
Johan Andersson
4fce58c892 urplay: look for programcontainer to get the json we need
fixes: #1308
2021-01-18 21:48:38 +01:00
Johan Andersson
c3ff0527fc hls: dont decrypt the already unencrypted files.
fixes: #1301
2020-12-31 15:19:22 +01:00
Johan Andersson
02012221c9 parser: when using -M force -S at the same time 2020-12-31 15:19:22 +01:00
Johan Andersson
938ae7d9b9 pre-commit: add-trailing-comma 2020-12-31 15:19:22 +01:00
awabom
009aa90ed0 urplay: fixes download of sd-only programs
Fixes download of programs without hd streams on urplay.se
2020-12-29 19:26:53 +01:00
Johan Andersson
82265dab50 svtplay: kanaler will work again
fixes: #1246
2020-12-12 21:44:24 +01:00
Johan Andersson
18a8758ee8 Add support for only-audio/-video option
It wont work with using both at the same time.
fixes: #1286
2020-12-06 18:56:52 +01:00
Johan Andersson
53eddea15e dplay: dont crash when we have wrong cookie 2020-12-05 16:44:10 +01:00
Johan Andersson
47aeb1b907 dplay: better message about the st cookie 2020-12-05 16:03:04 +01:00
Johan Andersson
749fd53f63 Fix some warnings in previous commit 2020-11-19 22:21:52 +01:00
Jespor
80a8094661 Updated the API URL to work for NO and DK. It's testet to work. 2020-11-19 22:17:53 +01:00
amigatomte
dae39fae24 Update urplay.py to get videos without hardcoded subtitles 2020-11-19 22:14:43 +01:00
Johan Andersson
bf1f9c545a viafree: check if we have any subtitles
fixes a crash where we expected to see subs but the list is empty
2020-11-13 11:30:42 +01:00
Johan Andersson
ef557cb9fb svtplay: they changed the name of they key for related episodes.
this should hopefully be more future proof.
2020-11-02 23:08:56 +01:00
Johan Andersson
a550bd185f Fix pre-commit comment 2020-10-12 19:32:06 +02:00
Olof Johansson
ac17a4f620 test_postprocess: Avoid depending on network service for tests
The sublanguage detection is handled by a webservice; having the tests
fail because of network issues/service outages would be nice to aovid.
Some environments are even designed to run without network connectivity
(e.g. debian package builds).
2020-10-12 19:27:13 +02:00
Olof Johansson
0e4fc4899c utils.parser: Allow direct access to argparse object before use
The svtplay_dl.util.parser.parser() function builds an argparse object
and applies it to sys.argv. This change splits this to two functions: a
gen_parser() that generates the argparse object and the parser()
function that still implements the old behavior (by itself calling
gen_parser()).

By being able to intercept the generated argparse object before it has
consumed the command line arguments, we can do things like generating
manpages directly from the argument definitions (kudos to the
argparse-manpage project). Such a tool can either be integrated in the
release process of svtplay-dl (affecting the set of dependencies for
everybody), or integrated as part of the distribution building process
(limiting the dependency to opt-in usage from distributions --- or
opening up for other solutions). This change will allow for either, but
does not introduce any new dependencies.

Whereas svtplay-dl supplies its version number as input to the argparse
generation, the argparse-manpage tool requires the function to be
callable without arguments; hence the "unknown" default value for the
version parameter to gen_parser(). It is overriden when used by
svtplay-dl and does not end up in the manpage when used with
argparse-manpage.

This change is backwards compatible; the interface or behavior of
parser() does not change.
2020-10-12 15:03:20 +02:00
Johan Andersson
d6dc139925 urplay: Fix so we can download videos again 2020-10-10 13:30:44 +02:00
Johan Andersson
26657e47e4 dplay: fix a crash when getting info for video 2020-10-10 12:59:14 +02:00
Johan Andersson
ddefda1cf6 svtplay: fix a crash when using -A
fixes: #1257
2020-09-30 21:11:09 +02:00
Johan Andersson
f5e967bffc dplay: add some error checks. 2020-09-29 20:39:27 +02:00
Johan Andersson
7db9f7ef7f solidtango: add support for user / passwd for solidsport 2020-09-27 20:37:13 +02:00
Johan Andersson
e94f9b3cd8 remove old debug print.. 2020-09-27 20:37:13 +02:00
Martin Carlberg
a25b50d077 Fixed: removed whitespace on solidsport domain 2020-09-23 21:47:46 +02:00
Johan Andersson
882c7f4ec9 solidtango: add basic support for solidsport 2020-09-20 14:00:15 +02:00
Johan Andersson
07deb1baa5 test: formatname platform tests 2020-09-19 15:16:52 +02:00
Johan Andersson
d1f5b3fb1b test: add more formatname tests 2020-09-19 14:49:26 +02:00
Johan Andersson
5fc7750e17 dplay: fix so it works with the updated website 2020-09-15 23:44:18 +02:00
Johan Andersson
1e32678ba9 Add support for cookies
it works similar to headers
2020-09-15 23:43:20 +02:00
Johan Andersson
964b2d3d20 viafree: fix subtitles 2020-09-14 23:07:58 +02:00
Simon Vallebro
478fd3b399 Applied similar fix for get all episodes i.e. -A (#1) 2020-09-13 20:21:53 +02:00
Jan
43542355a7 tv4play: Adapt to modified json structure 2020-09-13 20:21:53 +02:00
Sebastian Kemi
35e3b58453 Add support for webvtt subtitles in Oppetarkiv 2020-09-13 20:16:59 +02:00
Johan Andersson
9877a2c558 pre-commit fixes 2020-09-06 14:19:24 +02:00
Johan Andersson
6bde2e76bf dr: fix so it work with the new site 2020-07-30 22:39:27 +02:00
Johan Andersson
2bddaba826 cmore: fix user and password 2020-07-29 23:14:54 +02:00
Johan Andersson
8019a7e464 testcases fixes 2020-07-29 20:45:17 +02:00
Johan Andersson
b88f63ee65 cmore.mpd format 2020-07-29 20:45:17 +02:00
Johan Andersson
503eb17dc2 utils.getmedia: support for different codecs 2020-07-29 20:45:17 +02:00
Johan Andersson
74ef2a709f svtplay: support for codecs 2020-07-29 20:45:17 +02:00
Johan Andersson
0a201259d8 dash: support for codecs 2020-07-29 20:45:12 +02:00
Johan Andersson
7c35b3032f hls: support for detecting codecs 2020-07-28 21:26:13 +02:00
Johan Andersson
566738b8f1 fetcher: support for formats 2020-06-25 20:55:48 +02:00
Johan Andersson
916e19996c svt: fix so we can download videos again 2020-06-02 17:41:30 +02:00
Johan Andersson
ad4230dab2 pre-commit: newer version of black 2020-05-03 11:38:40 +02:00
Johan Andersson
389b21bde5 pre-commit: use a newer pyupgrade version 2020-05-03 11:35:03 +02:00
Johan Andersson
2f2753ebff viafree: rewrite for the new site 2020-05-03 11:31:38 +02:00
Johan Andersson
9867f07546 svtplay: fix Subtitle not found
fixes: #1206
2020-01-29 20:44:32 +01:00
Johan Andersson
c59a305336 dplay: fix check for status code and show a better error message 2019-10-19 15:22:53 +02:00
Johan Andersson
f85a9d4425 Revert "output: cut the episode names to to 30 chars."
This reverts commit 1721ca1003.

This need to be fixed in a better way
2019-10-18 16:26:21 +02:00
Johan Andersson
fd729f7f53 hls.parse: use AVERAGE-BANDWIDTH instead of BANDWIDTH 2019-10-18 15:48:37 +02:00
Johan Andersson
5dcc899816 svtplay: fix parsing date 2019-09-30 21:35:49 +02:00
Johannes Holmberg
806fc1d9d7 postprocess: figure out audio_filename before looking for tracks 2019-09-29 20:48:14 +02:00
Johan Andersson
1721ca1003 output: cut the episode names to to 30 chars.
fixes: #1004
2019-09-26 22:50:32 +02:00
Johan Andersson
3dd1f0e336 viafree: dont crash on empty episode names. 2019-09-26 22:49:41 +02:00
Johan Andersson
0826b8fa11 test: add some more generic service tests. 2019-09-16 00:53:30 +02:00
Johan Andersson
dba99ff35e vimeo: add player to supported domains 2019-09-16 00:52:42 +02:00
Johan Andersson
bcdd06858a generic: refactor matches 2019-09-16 00:48:17 +02:00
Johan Andersson
9baeb4a976 generic: bambuser is eol 2019-09-15 23:53:19 +02:00
Johan Andersson
c08e5460fe test: add tests for service_handler 2019-09-15 23:41:39 +02:00
Johan Andersson
dc8e62103f Add test files for sublanguage 2019-09-15 19:06:12 +02:00
Johan Andersson
b0b9582f63 test.postprocess: add some tests for sublanguage 2019-09-15 19:00:38 +02:00
Johan Andersson
5fc9bf49d7 test: postprrocess: _streams, _getcodec and _checktracks 2019-09-15 17:31:49 +02:00
Johan Andersson
ee717a71a4 postprocess: return the actual codec 2019-09-15 16:54:57 +02:00
Johan Andersson
9255069da1 get_one_media: show error message if force-subtitle and no subs
fixes: #1101
2019-09-15 04:01:34 +02:00
Johan Andersson
32e54c773e postprocess: better handling when its separated tracks 2019-09-14 22:53:03 +02:00
Johan Andersson
b428bcc398 postprocess: fix a crash during remuxing because it could not find tracks
fixes: #1153
2019-09-14 20:12:56 +02:00
Johan Andersson
eb4f508fb0 barnkanalen: svt.se/barnkanalen still use the old stuff
fixes: #1152
2019-09-14 14:22:28 +02:00
Johan Andersson
d51113df36 postprocess: handle when we done have a video track and switch bitstream only on aac ts files. 2019-09-14 14:17:45 +02:00
Johan Andersson
ce6cc7cc2f svtplay: fix a crash if they include "Z" in the validFrom
fixes: #1144
2019-09-12 20:51:31 +02:00
Johan Andersson
7065467dcd downlooad_thumbnail: fix a crash missing arguments
fixing: #1150
2019-09-12 19:47:50 +02:00
Johan Andersson
97f651837a util.output: make download video while using thumbnail and nfo work
When we download a video , nfo and thumbnail,
it will video will complain that the files already exists but its just the nfo and thumbnail.

fixes: #1148
2019-09-09 21:18:40 +02:00
Johan Andersson
5466853893 remove debug print 2019-09-08 02:22:50 +02:00
Johan Andersson
65b97aa5a0 Remove dateutil and make a workaround for <py37
cx_freeze dont include timezone data when it create the .exe
datetime has some issues with timezones in older versions of py
2019-09-08 01:32:57 +02:00
Johan Andersson
32323ee28f svtplay: improve -A on a show page
fixes: #1141
2019-09-07 12:31:05 +02:00
Johan Andersson
7271370c84 test: add test for sort_quality 2019-09-07 12:28:51 +02:00
Johan Andersson
f121567834 test: add ensure_unicode and test_decode_html code 2019-09-07 12:28:21 +02:00
Johan Andersson
addf05baa9 test: improve get_full_url 2019-09-07 12:27:36 +02:00
Johan Andersson
e9fca7a771 utils.text: py3 version of html.unescape 2019-09-07 12:24:59 +02:00
Johan Andersson
bc15c694c3 svtplay: older version of python3 cant parse timezones with colon.
fixes: #1137
2019-09-07 00:54:12 +02:00
Johan Andersson
4e187f9553 pre-commit: its a good thing to commit config... 2019-09-06 22:49:49 +02:00
Johan Andersson
3aef9a796e black fixes 2019-09-06 22:31:52 +02:00
Johan Andersson
9678370dce Add a bunch of subtitle function unittests 2019-09-06 22:09:07 +02:00
Johan Andersson
375f7d8946 Add support for pytest 2019-09-06 22:09:07 +02:00
Johan Andersson
76a699d25a pyupgrade fixes 2019-09-06 22:09:07 +02:00
Johan Andersson
7f0cf6eb82 pre-commit: reorder imports 2019-09-06 22:09:07 +02:00
Johan Andersson
e9b16fda77 pre-commit: pyupgrade 2019-09-06 22:09:07 +02:00
Johan Andersson
e105855fb7 pre-commit: black fixes 2019-09-06 22:09:07 +02:00
Johan Andersson
38fd2fdb51 svtplay: fix a crash with season and episode info
fixes: #1136
2019-09-06 22:06:33 +02:00
Johan Andersson
5a819afa2f svtplay: they changed the website.
fixes: #1134
2019-09-06 17:26:39 +02:00
toran4
d1904b2747 Set get_url if get_only_episode_url is set 2019-09-01 22:57:42 +02:00
toran4
e3a88d1a7a removed tabs on empty line 2019-09-01 22:57:42 +02:00
toran4
325ecd71d4 Added option to list only episode urls 2019-09-01 22:57:42 +02:00
dalgr
838b3ecc23 Live download not working from SVTBARN, fix #1121, #1122 2019-08-31 14:57:24 +02:00
iwconfig
b64dbf3c3e merge: Map video and audio tracks only once
When dealing with multiple subtitles, the singular video and audio tracks is added with each subtitle. This of course results in a multiplied file size which we don't want.
2019-08-22 20:47:39 +02:00
Harald Gustafsson
f06d3a85c2 Bug fixes for NFO file. Some misunderstand of Kodi tags and happened to swap episode and show plots.
fixes: #991
2019-08-22 20:44:03 +02:00
Johan Andersson
7e245444b7 nfo: title and showtitle was swapped
fixes: #1125
2019-08-22 19:19:22 +02:00
Johan Andersson
26b0ae19be parsertoconfig: set the wrong value to force_nfo
fixes: #1126
2019-08-22 18:48:59 +02:00
Johan Andersson
6a922a86db barnkanalen: dont crash on show page 2019-08-22 18:10:09 +02:00
Johan Andersson
93088a76cc subtitle: dont read another byte if bom
fixes: #1124
2019-08-22 07:57:40 +02:00
Johan Andersson
f429cfc634 Remove unused import 2019-08-20 15:56:49 +02:00
Johan Andersson
3dc2cf5079 subtitle: encode the text to utf-8
this will be the same on windows and *nix

fixes: #1119
2019-08-20 15:49:38 +02:00
Johan Andersson
a84b89bafd Rewrote big parts of the _dashparser 2019-07-13 14:31:13 +02:00
Johan Andersson
d33186e54e wrstsegments: fix sync issues
Fixes: #1063
2019-04-13 17:45:29 +02:00
Johan Andersson
be21f7d695 Tv4play: support for the new site
fixes: #1058
2019-04-08 23:24:07 +02:00
Johan Andersson
60c043da62 wrstsegments: fix so we handle newlines better
Fixes: #1050
Fixes: #1038
2019-04-08 23:21:59 +02:00
Johan Andersson
7649c2dad5 Remove newline and the end of the file 2019-03-25 23:33:31 +01:00
Johan Andersson
7fb5f02032 dr: they have started to use encrypted url’s
Fixes: #1056
Fixes: #1047
2019-03-24 21:06:23 +01:00
Johan Andersson
c4bf81fa9e hls: move cryptography to top imports. 2019-03-24 21:04:41 +01:00
Johan Andersson
05c322a52a hls: don’t finalize after we decrypt the data.
In cases where we have several keys in a stream we can run finalize on the data.
2019-03-23 02:36:01 +01:00
Johan Andersson
ecaced7b5c dashparse: use == compare ints.. 2019-03-23 02:02:11 +01:00
Johan Andersson
feb503e013 daskparse: search for contentType on adaptationset instead of mimype
Svtplay stopped using mime type on adaptionset.
Fixes: #1054
2019-03-23 01:20:56 +01:00
Johan Andersson
5b6779edf2 Replace pycryptodome with cryptography.
This will make it easier to support older distros. For example ubuntu 16.04 and Debian stable (9)
2019-03-23 01:00:44 +01:00
Johan Andersson
525d33a516 Cosmetic changes from flake8 2019-03-23 00:57:19 +01:00
Johan Andersson
dcbf6a8a0e sr: they have updated the site a little.
Fixes #1033
2019-01-09 21:35:12 +01:00
Johan Andersson
f47e729c01 fetcher.http: if we can detect its mp3, use that as extension. 2019-01-09 21:34:21 +01:00
Johan Andersson
806fd55d3b svt: support for subtitles on the page.
fixes #1026
2019-01-06 21:55:48 +01:00
Johan Andersson
a4d4769457 service: don’t crash if configfile is not set
Fixes #1015
2019-01-06 20:21:45 +01:00
Jan
9f2e0ef806 Viaplay: Fix video-id extraction 2019-01-02 20:59:05 +01:00
iwconfig
256ca145b2 flake8 fix 2018-12-12 00:20:17 +01:00
iwconfig
1d1574a019 Added option to only download nfo 2018-12-12 00:20:17 +01:00
Johan Andersson
79f77cb785 get_media: check for all_episode from the service config
Fixes: #1009
2018-12-11 01:03:12 +01:00
Johan Andersson
72143b7172 output.findexpisode: don’t crash if we don’t have an id
fixes: #1000
2018-11-18 12:54:37 +01:00
Johan Andersson
36116c7a3b Remove old logging 2018-11-18 12:47:19 +01:00
Johan Andersson
a665f98836 expressen: fixed an issue we cant find the id
fixes: #1003
2018-11-18 12:36:18 +01:00
Johan Andersson
1c302d4a18 flake8 fixes for eurosport 2018-11-14 00:46:42 +01:00
Johan Andersson
951b8d7b7c Eurosportplayer: fix for their new site.
fixes: #989
2018-11-14 00:42:52 +01:00
Johan Andersson
a65a32267b eurosport: add support for more subdomains. 2018-11-13 19:54:39 +01:00
Johan Andersson
5f21f27f76 service. readd the service to the list of services. 2018-11-13 19:52:20 +01:00
Johan Andersson
74f68a535b fetcher.rtmp: RIP. Who use flash in 2018 anyway.
Removing old RTMP and related code.
qbrick is not used anyway.
2018-11-12 19:05:41 +01:00
Johan Andersson
f910e66efb hbo: this is not working anyway. 2018-11-12 18:51:13 +01:00
Johan Andersson
d72c3dd558 bambuser: old service. removing 2018-11-12 18:49:29 +01:00
Johan Andersson
772670b6c9 parser.readconfig: handle permission denied while reading config 2018-11-04 22:04:50 +01:00
Johan Andersson
884ad99f9f parser.readconfig: don’t crash on empty file
fixes: #992
2018-11-04 22:01:24 +01:00
Johan Andersson
e0403a9ac0 viafree: remove unused import 2018-11-02 18:17:38 +01:00
Johan Andersson
d5a1ec1197 subtitle.sami: in some cases they have extra xml code in Text element
fixes: #990
2018-11-02 00:38:39 +01:00
Johan Andersson
ff42f884a5 viafree: remove some old code for rtmp
fixes: #950
2018-11-02 00:37:05 +01:00
Johan Andersson
ca295d461d flake8: new version detecting more stuff 2018-10-28 23:16:00 +01:00
Johan Andersson
bd73466265 fetcher.http: rename options to config 2018-10-28 22:36:22 +01:00
Harald Gustafsson
61c76824a9 Added some checks in the NFO writing to not throw exception if some metadata is None. Also skips NFO if not even the title is available. 2018-10-28 22:34:49 +01:00
Harald Gustafsson
c86c111931 Barnkanal have started missing season number for some shows, now defaults to "01" if episode number exist. 2018-10-28 22:34:49 +01:00
Harald Gustafsson
171bd25084 SVT changed thumbnail path, fix for using the new path (and still old until we know it is completely gone). 2018-10-28 22:34:49 +01:00
Johan Andersson
4fbf861985 subtitle.wrst: add translation of names to hex
fixes: #963
2018-10-28 20:47:41 +01:00
Johan Andersson
647d119ce8 tv4play: better message if the video is not available
fixes: #981
2018-10-28 16:37:58 +01:00
Johan Andersson
0596ee743b riksdagen: add support without subdomain.
fixes: #976
2018-10-28 16:29:17 +01:00
Johan Andersson
1e72958dc4 subtitle.sami: handle characters in squeeze number.
Fixes: #987
2018-10-28 14:17:27 +01:00
Johan Andersson
41cee01ab3 cmore: new site, new update 2018-10-13 13:55:25 +02:00
Johan Andersson
a72d8e4e3c hls.download: when we see key url as skd:// abort 2018-10-13 13:53:10 +02:00
Johan Andersson
8595586053 get_multiple_media: fix a crash when outputting to folder 2018-10-13 13:52:10 +02:00
Johan Andersson
7ac0b5fc65 get_media: support for raw mpd files 2018-10-07 19:54:43 +02:00
Johan Andersson
f0efb1b685 tests.dash: add some basic tests for _dashparse 2018-10-07 19:53:09 +02:00
Johan Andersson
5ac273dc47 dash.parse_dates: add a new time of date format.. 2018-10-06 23:17:45 +02:00
Johan Andersson
72591c20f0 dashparse: split the function into two 2018-10-06 23:17:19 +02:00
Johan Andersson
f183c3014e service.test: add some opengraph_get test cases 2018-10-05 23:46:52 +02:00
Johan Andersson
2b49c2259b service.test: add one more handler test case 2018-10-05 23:45:09 +02:00
Johan Andersson
b5aed11c17 tests._formatname: add some test on different format test configurations 2018-10-05 23:28:05 +02:00
Johan Andersson
7c2d86375e utils.output: dot and dash is optional 2018-10-05 23:28:05 +02:00
Johan Andersson
22d387717e service.tests: more service tests. 2018-10-05 23:28:05 +02:00
Johan Andersson
1499a006f7 get_one_media: fix a crash in older versions of py3
fixes #969
2018-10-01 22:33:27 +02:00
Johan Andersson
10e1413eb6 get_media: use logging instead of log 2018-10-01 22:07:01 +02:00
Kristoffer Hallqvist
0c1ccf9c51 Added leading space in line comment 2018-10-01 22:02:39 +02:00
Kristoffer Hallqvist
1d716d5963 Ignores unexpected empty lines in subtitle format 2018-10-01 22:02:39 +02:00
Olof Johansson
8c19f96e46 output: Adapt test suite to new location of module
The output module was moved from svtplay_dl.output to
svtplay_dl.utils.output some time ago.
2018-09-30 19:00:13 +02:00
Olof Johansson
bbf10ee077 hls: Break out get_full_url tests to new test suite (http)
The get_full_url was moved some time ago from the hls module to the
svtplay_dl.utils.http module.
2018-09-30 19:00:13 +02:00
Olof Johansson
228d34c500 filenamify: Make the test suite import module from right location 2018-09-30 19:00:13 +02:00
Olof Johansson
5f087f0efa protocol_prio: Make the test suite import module from right location
The tests are still failing, but not from ImportError anymore.
2018-09-30 19:00:13 +02:00