1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-12-11 20:34:18 +01:00
Commit Graph

1609 Commits

Author SHA1 Message Date
Olof Johansson
352fd90e51 build: Truncate timestamps in zip archive
Even though zip's -X flag suggests that it removes timestamps, that's not
quite true. There's still modification times per file, and that introduces
non-determinism that are hard to notice, since the mtimes are unlikely to
change without changes to the files. Only when doing a new clone/unpacking
a tar ball under some circumstances or similar action that resets/discards
the mtimes, we would notice.

So, the -X is not enough, and from what I can tell, there's no way of
telling zip to not include timestamps (or truncate them). With this
change, we stage all files in a temporary .build directory, and set the
mtime manually to the beginning of time (as is the case for zip files:
1980-01-01T00:00). These timestamps should not be important to anyone,
since they are all presented to the user as a blob.

The rationale for this change is that this makes it possible to build
svtplay-dl reproducibly. And it also removes the pesky svtplay-dl diffs
just from regenerating the executable.
2015-05-30 13:58:30 +02:00
Olof Johansson
872cbf4140 build: make manpage generation reproducible
pod2man will insert a date in the footer of the manpage. By default,
it takes this value from the mtime of the input file. But this makes
it non-deterministic in that another build may produce other results.
By setting it to always be the date of the latest release we make it
deterministic.
2015-05-30 13:27:45 +02:00
Johan Andersson
0006eeea58 Prepare for release 0.10.2015.05.24 2015-05-24 17:31:34 +02:00
Johan Andersson
0259643fbe __init__: unused import 2015-05-24 14:55:45 +02:00
Johan Andersson
0ee4ef7ce9 justin: unused variable 2015-05-24 14:51:37 +02:00
Johan Andersson
89cf3cad76 tv4play: they changed the order on name and type key.
this fixes #237
2015-05-24 14:27:07 +02:00
Johan Andersson
b0dbe63345 justin: better filenames 2015-05-24 13:59:11 +02:00
Johan Andersson
6f228284cf justin: refactor get function 2015-05-24 12:37:16 +02:00
Johan Andersson
e1100fa7d4 justin: support for the new vod system 2015-05-23 19:18:04 +02:00
Johan Andersson
617edb4d21 urplay: better path for rtmp streams 2015-05-06 10:42:03 +02:00
Johan Andersson
620cbf9b43 urplay: Check how many items we have in subtitles
This fixes #235
2015-05-06 10:33:24 +02:00
Johan Andersson
7950e06e0d smi: check if data is empty 2015-05-01 22:34:02 +02:00
Johan Andersson
4d634dc323 unused import 2015-04-30 11:42:21 +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
07038caa2a get_one_media: don’t try to decode utf8 on filenames on windows
more fixes #233
2015-04-30 10:51:43 +02:00
Johan Andersson
67ad23a8b3 get_one_media: handle international character in output
this fixes #233
2015-04-29 15:06:18 +02:00
Johan Andersson
acb3349591 qbrick: unused import unquote_plus 2015-04-28 23:20:34 +02:00
Johan Andersson
01fee67b88 vg, vimeo: missing newline at the end of file 2015-04-28 23:19:35 +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
679f40cf35 io: use StringIO instead of BytesIO 2015-04-28 22:58:02 +02:00
Johan Andersson
29612f4f11 get_one_media: fixes issues with filenames with “, ‘ and \ in windows
this fixes #230
2015-04-27 22:25:56 +02:00
Johan Andersson
749d00ac82 svtplay: use context instead of statistics for filename 2015-04-16 21:58:48 +02:00
Johan Andersson
bdeea1e130 facebook: better error message 2015-03-31 20:51:13 +02:00
Johan Andersson
6f20126ff7 facebook: support for downloading public videos. 2015-03-31 20:49:08 +02:00
Johan Andersson
1d3f3ac96f Prepare for release 0.10.2015.03.25 2015-03-25 00:17:30 +01:00
Olof Johansson
b166577f07 Regenerate svtplay-dl after __version__ is updated 2015-03-25 00:12:44 +01:00
Johan Andersson
9ba730b524 Merge pull request #224 from olof/update_version_on_release
build: update __version__ as well on release
2015-03-25 00:08:24 +01:00
Olof Johansson
c0e4e50d06 build: update __version__ as well 2015-03-25 00:04:10 +01:00
Johan Andersson
07fa5d1b9b Update .pod file with --get-url 2015-03-24 21:33:15 +01:00
Johan Andersson
20d72587b2 OSX dont have sha1sum. it is called shasum 2015-03-24 21:30:38 +01:00
Johan Andersson
b57736a2c1 Merge pull request #221 from olof/topic/release_make_target
Add release make target
2015-03-24 21:17:27 +01:00
Jimmy Axenhus
ae8e768b51 Add a new command line switch --get-url that prints the URL instead. 2015-03-24 21:10:01 +01:00
Olof Johansson
87304cbbc7 build: Create release target
To build a new release, including tagging and commiting the release changes
(regenerate svtplay-dl, and update Makefile with LATEST_RELEASE), just do make
release. Obviously, the intended user of this target is the upstream author(s).

As part of the make release target, svtplay-dl will be unit tested and the
manpage will be checked to make sure all options are documented. All of this
happens in a local clone of your local repo. This is to make sure that no files
are left uncommited.

Finally, the changes necessary will be applied to your repo and a tag will be
set. All you have to do at this point is to verify that everything looks ok, and
then push master and the new tag to github.
2015-03-22 18:41:18 +01:00
Olof Johansson
47b05a245d build: Add doctest make target
Running `make doctest` will make sure the manual page is synchronized with the
available options.
2015-03-22 18:08:03 +01:00
Olof Johansson
7cde2ca8e7 Add script to diff --help and manpage
This is useful for making sure that the manpage is updated with regards to new
options.
2015-03-22 18:08:03 +01:00
Olof Johansson
975932bffe build: Build release date into VERSION 2015-03-22 17:48:14 +01:00
Olof Johansson
cf5facd149 build: Version was bumped to 0.10 some time ago 2015-03-22 17:47:56 +01:00
Olof Johansson
2265d544b9 Synchronize manual with --help text 2015-03-21 18:36:31 +01:00
Johan Andersson
d58ce64ec8 urplay: they updated their site a bit.
this fixes #213
2015-03-21 17:36:15 +01:00
Olof Johansson
a656b78b91 Fix confusing typo in manual: --live is -l, not -v 2015-03-21 17:33:55 +01:00
Olof Johansson
b3a2e2d5a7 Remove sydsvenskan from manpage as well
(See commit 70ef4a30a, removing support for Sydsvenskan due to their switch to
be using Youtube.)
2015-03-21 17:24:42 +01: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
cd2ef6b403 ruv: leftover debugstuff.. 2015-03-12 19:35:33 +01:00
Johan Andersson
5c6859fdf3 ruv: some files is .mp4 files instead of .m3u8
this fixes #218
2015-03-08 14:56:04 +01:00
Olof Johansson
f72bd39df2 Remove disbanded services/aliases
Justin seem to have disbanded, and kanal5.se redirects to kanal5play.se.
Remove references to them in documentation. For now, the services are
still named justin.py and kanal5.py.
2015-03-08 14:50:32 +01:00
Johan Andersson
70ef4a30a5 qbrick: sydsvenskan is not supported anymore
fixes #216
2015-03-08 14:46:27 +01:00