Johan Andersson
f8f25cf2a4
Merge remote-tracking branch 'qnorsten/master' into qnorsten
2016-07-24 12:15:11 +02:00
Johan Andersson
f0fe1638eb
output: print which filename exists while printing the error message
...
fixes : #391
2016-06-02 23:56:41 +02:00
qnorsten
5871f81695
output: removed unnecessary print
2016-05-05 01:26:38 +02:00
qnorsten
507bb3cf31
output: wrst now detected as extension. srt file no longer named .wrst.srt when saving raw subtitle from SVT-play.
2016-05-04 09:44:56 +02:00
qnorsten
b3f03c2a69
output: Raw subs now affected by --force-subtitles and not --force
2016-04-29 11:51:24 +02:00
qnorsten
f77b560ad8
output: Modifed whitelist from srt to all subs to fix error with raw subtitle file preventing download of videofile
2016-04-29 11:51:23 +02:00
Johan Andersson
e523141a04
support for dash streams
2016-03-26 21:38:31 +01:00
Johan Andersson
aba4d892f8
progressbar: this should be bit smaller because of fetcher.http
...
using bytes instead of low number takes more room
2016-03-20 00:32:01 +01:00
Johan Andersson
3f04ae2a56
swap place on py2 and py3 checks
2016-01-27 19:49:38 +01:00
Johan Andersson
b5ea350c0f
Move options to when we init the service class
2015-12-26 11:46:14 +01:00
Olof Johansson
44293899fc
Don't workaround windows cmdline parsing brokeness
...
We should be able to assume that if we see literal " in the name of the
output file, the user really wants the quotes. Assuming otherwise opens a
can of worm. What else can't we trust in the environment?
On the Windows command line, \ has special meaning in strings, and it's not
the same as on normal platforms: it only has special meaning if it's
immediately followed by a " character, in which it case it will make the "
character be interepreted literally. That's what we've been seeing.
Incorrect command line on windows:
python svtplay-dl -o "C:\foo\"
Correct command line on windows:
python svtplay-dl -o "C:\foo\\"
This has been made harder to pinpoint because of the forgiving nature of
command line parsing on windows. For instance: The following command was
reported to work:
python svtplay-dl http://example.com/ -o "C:\foo\"
But only if the -o flag was the last argument. (Unclear if the trailing "
was passed on to the program or not.)
Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/17w5ykft(v=vs.85).aspx
2015-10-25 19:41:39 +01:00
Johan Andersson
a98e6046be
output: add kwargs as argument
2015-10-25 17:18:40 +01:00
Johan Andersson
c69803681e
output: we only want to look at the 2-3 last chars.
...
fix #284
2015-10-24 22:04:09 +02:00
Johan Andersson
dc2cc0294c
pip8. expected 2 lines found 1
2015-09-15 20:10:32 +02:00
Johan Andersson
b02b293919
output: walkaround for titles with .XXX at the in the end.
2015-09-06 22:51:39 +02:00
Johan Andersson
724af70f49
subtitle: open as text and save it
2015-08-31 22:46:45 +02:00
Johan Andersson
84ee181f5b
adding request support.
...
still need some more work
2015-08-30 00:06:20 +02:00
Johan Andersson
5a54105ccc
output: use the right slash for the right platform
...
fixes #251
2015-08-24 23:02:28 +02:00
Johan Andersson
072e4d50c7
filename: it should be latin1 not lain1.
2015-04-30 11:03:52 +02:00
Johan Andersson
5c135d24a4
Move automagic filename thing to output.py
2015-04-30 11:02:18 +02:00
Johan Andersson
ff3971edec
outout: remove a superfluous-parens
2015-01-28 21:02:27 +01:00
Johan Andersson
ab3283aace
output: extract the filename and add srt file extension to it.
...
Issue is that when we specify filename with -o the subtitles
is written to that file and later when we want to save the video
to that file. the file already exists.
2015-01-16 21:58:42 +01:00
Johan Andersson
f144bfb21f
findexpisode: don’t run the second section for .srt files
...
this fixes : #199
2015-01-01 22:11:27 +01:00
Johan Andersson
6e144ab45d
output: more fixes for #140
2014-12-31 19:55:53 +01:00
Johan Andersson
7c6b1c7f23
findexpisode: we want to use this for subtitles also.
2014-12-30 21:18:48 +01:00
Johan Andersson
21cd9efe93
output: no need to get the filename when we already have it in options
2014-12-30 21:18:01 +01:00
Johan Andersson
d7d8297811
pylint fixes
2014-12-26 02:04:29 +01:00
Johan Andersson
12f666b5e6
Forgot r-prefix in re.search
2014-11-09 02:15:43 +01:00
Olof Johansson
33345d90d1
Raise severity of "file already exists" errors
2014-10-12 21:27:24 +02:00
Johan Andersson
7f7d79a3db
output: Don’t download the file if we already have it for some other fetcher
2014-08-27 22:40:31 +02:00
Johan Andersson
1d222eacc3
progressbar: make it bit smaller.
...
this should fix #122
2014-08-27 19:29:00 +02:00
Johan Andersson
8eec519577
output: make pylint happier.
2014-08-21 22:10:16 +02:00
Johan Andersson
686f5f615a
refactor output to its own function
...
Almost the same code for all the fetchers.
2014-08-20 20:27:45 +02:00
Olof Johansson
b494a61d41
output: fix typo in docstring
...
Reference: #ep14bot
2014-07-24 17:56:36 +02:00
Johan Andersson
4b9b40c9f4
output: better progress width handling
2014-06-26 22:55:54 +02:00
Olof Johansson
a4202238c9
Remove unused imports
2013-04-21 13:45:43 +02:00
Olof Johansson
b31834fd6e
svtplay_dl.output: Make progress() wrap progressbar()
...
The progressbar() currently does not handle the case where the total size is
unknown. But with this change, progress() will internally use progressbar()
for its bar generation, while still supporting a more basic progress info when
total size is unknown.
2013-04-19 17:44:21 +02:00
Olof Johansson
ae8fda8963
svtplay_dl.output: prettier progressbar generation
2013-04-19 17:39:25 +02:00
Olof Johansson
0136c06a3b
svtplay_dl.output: add an ETA class
...
This class is used to calculate remaining time to process a given
list of items.
2013-03-25 19:32:06 +01: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