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

55 Commits

Author SHA1 Message Date
Mikael Larsson
103ce2f958 introduce reverse download order (-R) 2024-04-26 21:46:32 +02:00
Johan Andersson
d814ba7165 utils.parser: remove resume option 2024-04-26 20:58:49 +02:00
Johan Andersson
c6e0b3124c Rename audio_role to video_role to make it work with signlanguage
This will fix a bug with dash when sometimes got a sign video when
it should have been a normal one.
2024-04-26 20:19:47 +02:00
Johan Andersson
0440e10241 parser: add token support 2023-10-12 00:55:51 +02:00
Johan Andersson
d35796ff66 utils.stream: forgot .get to fetch the config value 2023-06-02 20:26:32 +02:00
Johan Andersson
485f3fa6d8 postprocess: remove file when only use merge subtitles
In some cases we could end up with two subtitles
but we only have "one" subtitle. like one from HLS and one from
a different way.
2023-06-01 21:11:31 +02:00
Johan Andersson
16af7a3111 parser: add filename template argument
this was only exposed via config before
2022-08-28 23:18:02 +02:00
Johan Andersson
cf5b774d8e Add --resolution argument 2022-05-13 08:36:34 +02:00
Johan Andersson
4bf49f160c config: fix so proxy option work
for some reason i forgot these special
settings for config values.

fixes: #1463
2022-03-31 23:53:57 +02:00
Johan Andersson
e20d753a15 logging f-strings fixes 2021-12-18 21:36:16 +01:00
Johan Andersson
96544ae2f8 fix some return values 2021-12-18 21:32:41 +01:00
iwconfig
aee5d90f0f parser: -M does not necessarily imply -S 2021-12-09 20:42:50 +01:00
iwconfig
f3d8371eb5 parser: updated help descriptions of -S and -M if used together 2021-12-09 20:42:50 +01:00
Johan Andersson
404373ee30 parser: set subtitle when --all-subtitle is used 2021-08-27 20:22:44 +02:00
Johan Andersson
09843d632a postprocess: add support for mkv 2021-06-25 09:52:25 +02:00
Johan Andersson
a3642b897d Add missing comma 2021-06-04 20:02:00 +02:00
iwconfig
19d63f1eb9 Added some boolean flags to the postprocess
* replaced `--remux` with `--no-remux`
    * added `--no-merge`
    * added `--no-postprocess`
    * added `--keep-original`

This should be sufficient to consider issue #1194 fixed.
2021-06-04 19:50:03 +02:00
Johan Andersson
6305dbcc9c Add support for audio language and audio role 2021-05-16 13:55:28 +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
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
4ec553e0ed Add py3.6 changes 2021-02-28 22:05:33 +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
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
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
1e32678ba9 Add support for cookies
it works similar to headers
2020-09-15 23:43:20 +02:00
Johan Andersson
503eb17dc2 utils.getmedia: support for different codecs 2020-07-29 20:45:17 +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
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
toran4
d1904b2747 Set get_url if get_only_episode_url is set 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
Johan Andersson
26b0ae19be parsertoconfig: set the wrong value to force_nfo
fixes: #1126
2019-08-22 18:48:59 +02:00
iwconfig
1d1574a019 Added option to only download nfo 2018-12-12 00:20:17 +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
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
Harald Gustafsson
fd0171d257 New option to only download videos that are published on or after a certain date. Relies on the new metadata extraction. When metadata is missing defaults to download. Useful for channels that don't publish episodes in order e.g. barnkanalen. 2018-09-05 21:43:52 +02:00
Harald Gustafsson
c15d7607eb Create NFO files with the extracted metadata. TVshows get a tvshow.nfo file as well. 2018-09-05 21:43:52 +02:00
Harald Gustafsson
184f79a377 Option to automatically create a subfolder for tvshows, named as the show title. When not a series will use a subfolder titled movies. 2018-09-05 21:43:52 +02:00
Johan Andersson
d69244d39c merge: dont try to merge when new is None 2018-05-26 01:26:30 +02:00
Johan Andersson
600afef12b parser.setup_default: add missing default values 2018-05-20 20:29:16 +02:00
Johan Andersson
c41dba7077 parser.merge: rewrite and dont update items with std values 2018-05-20 20:28:49 +02:00
Johan Andersson
2e0bf58a3f parser: this can be on one line 2018-05-20 19:05:35 +02:00
Johan Andersson
e97b104573 unused imports 2018-05-20 19:05:17 +02:00
Johan Andersson
6dfdc8c6c0 Support for config files
this will search for config file in
unix: ~/.svtplay-dl.yaml
windows: %APPDATA%\svtplay-dl\svtplay-dl.yaml
2018-05-20 18:21:40 +02:00
Johan Andersson
2543ed7f46 move some special config values to parser 2018-05-20 13:16:00 +02:00
Johan Andersson
9a2aafefda parser: set output to None 2018-05-13 13:18:36 +02:00