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

52 Commits

Author SHA1 Message Date
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
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
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
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
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
Johan Andersson
36116c7a3b Remove old logging 2018-11-18 12:47:19 +01:00
Johan Andersson
ca295d461d flake8: new version detecting more stuff 2018-10-28 23:16:00 +01:00
Johan Andersson
c97ec9030e subtitle.remux: remove copyts
copyts made that videos started at 10s and made subtitles be wrong.
2018-07-12 00:53:55 +02:00
Johan Andersson
d61e5793e6 use which from stdlib instead our own version 2018-07-05 01:26:43 +02:00
Johan Andersson
7aba2589ec _checktracks: support for language in the stream 2018-06-24 21:55:18 +02:00
Johan Andersson
a5f1ee4c25 postprocess: set the right output filename when using remux 2018-05-13 13:18:36 +02:00
Johan Andersson
9ce61f499d postprocess: generate correct filename 2018-05-13 13:09:27 +02:00
Johan Andersson
5474da2251 postprocess: use config 2018-05-13 13:09:27 +02:00
Johan Andersson
d4dc9693df postprocess: use output in streams instead of options 2018-05-13 13:07:37 +02:00
Johan Andersson
ca49366002 Options to config 2018-05-13 13:06:45 +02:00
Johan Andersson
28dcc90d7e flake8 fixes 2018-05-13 12:10:19 +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
2283d3e593 postprocess: fix indentation 2018-05-13 12:08:11 +02:00
Johan Andersson
022eda0c56 postprocess: rewrite some subfixes checks 2018-05-13 12:08:11 +02:00
Johan Andersson
b8c1163852 remove a bunch of is_py. time for py3. 2018-05-13 12:08:11 +02:00
iwconfig
bdf33167d3 check subtitle length before random.sample()
Pass random.sample() the total number of sentences in the subtitle if less than 8.
i.e. max 8 sentences.

fixes #659
2018-05-06 20:02:07 +02:00
Olof Johansson
b18a166898 postprocess: Give up on failure, not success when muxing
This, I suspect, accidental inversion of the error case led to files not
being cleaned up properly.

Fixes #856, reported by @pulsatorius
2018-03-09 22:36:30 +01:00
Johan Andersson
3818ee1ee9 postprocess.merge: when we merge .ts to .mp4 we need to have bsf:a
fixes: #825
2018-03-06 21:49:43 +01:00
Johan Andersson
24213562ad postprocess: try to detect the bad audio track and skip it
this will only work for files with one audio track.
i have never seen file with several
fixes #814
2018-03-04 11:41:22 +01:00
Johan Andersson
7b6ceb4737 Flake8 fixes 2018-01-30 20:17:33 +01:00
iwconfig
0b2b528a6d Prevent zero length field name in format
Added numbers to format() to prevent 'ValueError: zero length field name in format'
2017-03-26 14:48:15 +02:00
iwconfig
e5e7fd0293 Changed all '%s', to '{}'.format()
This also fixes a bug on line 105: format() got '%s' instead of '{}'.
2017-03-26 14:48:15 +02:00
Johan Andersson
456e008597 pylint fixes 2017-02-15 23:15:50 +01:00
Johan Andersson
da66ffcf2e format string fixes
fixes #558
2017-02-12 09:01:40 +01:00
Johan Andersson
ea3041cf08 postprocess: we need to open the file as enc=utf8 on windows py3
fixes #521
2017-01-15 12:29:40 +01:00
Johan Andersson
0f99956d62 postprocess: don’t crash on åäö in filename
fixes #517
2017-01-02 21:09:35 +01:00
Johan Andersson
80992f8664 postprocess: return und if we cant get the right language 2016-12-05 19:36:00 +01:00
Johan Andersson
0cb152edef postprocess.sublanguage.parse: in py3 map return an iterator but we want a list
fixes #444
2016-09-07 17:31:14 +02:00
iwconfig
91cc1a18a2 Fixed minor bug with manual mappings options for ffmpeg
also a tiny cleanup
2016-07-11 23:05:03 +00:00
iwconfig
3c1d45a37c Fixed issue with --force-subtitle.
--force-subtitle and -S did not respect each other but now it is
working as it should. If --force-subtitle is used with -S it downloads
only the subtitles, and if --force-subtitle is used alone it overwrites
the existing subtitles and continues with the audio/video stream.
2016-06-30 23:57:27 +00:00
iwconfig
4e63c15ef9 Added -M, --merge-subtitle to merge subtitle(s).
The option gets the correct ISO639-3 language code using my own simple
language detection api, and merges with correct metadata using ffmpeg.
If ffmpeg is not installed an error message is raised since avconv
doesn't seem keep up with ffmpeg.

I also did a little cleanup in postprocess().
2016-06-30 23:57:27 +00:00
iwconfig
4f6c4821d7 remux only if file is not mp4 2016-06-02 01:47:25 +02:00
Johan Andersson
003c494e0b postprocess: ext includes dot before fileextention
this fixes: #380
2016-04-27 18:53:47 +02:00
Olof Johansson
5393dc1929 Fix various pylint warnings
None of these were any real problems, but easier to spot real issues if pylint
is a bit quieter. Apart from the pylint overrides being sprinkled over the code
base, this commit also fixes occurences of the following issues:

 - logging-not-lazy
 - logging-format-interpolation
 - unused-import
 - unused-variable
2016-04-03 19:06:45 +02:00
Johan Andersson
c125540498 postprocess: this should be None and not False 2016-03-30 18:18:43 +02:00
Johan Andersson
c31cdfeeec postprocess: add copyts 2016-03-28 19:17:06 +02:00
Johan Andersson
e523141a04 support for dash streams 2016-03-26 21:38:31 +01:00
Johan Andersson
22614e1aa6 postprocess: dont hardcode avconv 2016-03-22 23:31:32 +01:00