Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2014-02-27 Thread Per Andersson
On Sat, Feb 15, 2014 at 12:05 PM, Olof Johansson o...@ethup.se wrote:
 On 2014-02-04 23:57 +0100, Per Andersson wrote:
 Hi!

 Packaging looks good!


 Streaming from UR Play is not possible at all. upstream commit a7c9043301
 fixes this. Please include at least that in a new package.


 Found some more issues when I tested the new package.

 I just uploaded a new upstream version to mentors, including fixes to
 almost all of the reported issues. There's still some issues with tv4,
 aftonbladet and kanal9play, but only kanal9play seems to be completely
 unusable (some media works fine with both aftonbladet and tv4).

 Some of the issues have been fixed by improving error messaging (so,
 still not able to retrieve media, but a little improvement at least :-)).

  http://mentors.debian.net/package/svtplay-dl

Uploaded to the NEW queue just now.

I also tried a one-off shot to run svtplay-dl with Python 3, which
seemed to work.
Consider supporting Python 3.


 Please let me know if there's any other outstanding issues!

An excerpt from my test run.

avtobiff@saturn:/tmp$ svtplay-dl
http://www.justin.tv/cg_village_captain/b/506008493
ERROR: Something wrong with that url
ERROR: Error code: 404

avtobiff@saturn:/tmp$ svtplay-dl
http://www.tv3play.lt/programos/pishiaus-anekdotai/362489?autostart=true
INFO: Outfile: pishiaus-anekdotai-pishiaus-anekdotas-sporto-saleje-tv3-play.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close
INFO: no thumb requested

avtobiff@saturn:/tmp$ svtplay-dl
http://www.viasat4play.no/programmer/viva-la-bam
ERROR: Cant find video file

avtobiff@saturn:/tmp$ svtplay-dl http://www.kanal9play.se/program/177466428
ERROR: Can't find video file

avtobiff@saturn:/tmp$ svtplay-dl
http://www.svd.se/kultur/amster-moter-veronica-maggio_8954474.svd
ERROR: Can't find video file
avtobiff@saturn:/tmp$ svtplay-dl
http://www.svd.se/kultur/amster-moter-artister_8463590.svd?sidan=9
ERROR: Can't find video file

avtobiff@saturn:/tmp$ svtplay-dl http://www.kanal5play.se/program/259009
ERROR: Can't find video file


--
Per


 --
  ---
 | Olof Johansson  http://stdlib.se/ |
 |  irc: zibri   https://github.com/olof |
  ---

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)

 iEYEARECAAYFAlL/SekACgkQCPS7eH/A+7psygCfe2qQe4lDxVaUwbY9egrO60G/
 LUAAniXxQ4WRXqeJ4vMNtgoEd4BrEs2C
 =R9r6
 -END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2014-02-15 Thread Olof Johansson
On 2014-02-04 23:57 +0100, Per Andersson wrote:
 Hi!
 
 Packaging looks good!
 
 
 Streaming from UR Play is not possible at all. upstream commit a7c9043301
 fixes this. Please include at least that in a new package.
 
 
 Found some more issues when I tested the new package.

I just uploaded a new upstream version to mentors, including fixes to
almost all of the reported issues. There's still some issues with tv4,
aftonbladet and kanal9play, but only kanal9play seems to be completely
unusable (some media works fine with both aftonbladet and tv4).

Some of the issues have been fixed by improving error messaging (so,
still not able to retrieve media, but a little improvement at least :-)).

 http://mentors.debian.net/package/svtplay-dl

Please let me know if there's any other outstanding issues!

-- 
 --- 
| Olof Johansson  http://stdlib.se/ |
|  irc: zibri   https://github.com/olof |
 --- 


signature.asc
Description: Digital signature


Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2014-02-06 Thread Per Andersson
 Streaming from UR Play is not possible at all. upstream commit a7c9043301
 fixes this. Please include at least that in a new package.

 This is not quite correct. Some videos lack a HD stream exposed via
 flash.  See bug report here: https://github.com/spaam/svtplay-dl/issues/61
 But nonetheless, I agree, should be part of the upload.

I did try downloading non-HD streams, i.e. without the -H option.


 root@saturn:~# svtplay-dl http://tv.nrk.no/program/koid75007313/lysleite
 ERROR That site is not supported. Make a ticket or send a message

 Works with latest upstream.

Good.


 root@saturn:~# svtplay-dl http://www.tv4.se/snn-news/avsnitt/avsnitt-4-169107
 ERROR Something wrong with that url
 ERROR Error code: 404

 Premium content? Not sure. Can reproduce with your URL, but not with
 randomly chosen video.

I don't know either.


 The site tv3play.lv redirects to tvplay.lv. Does not work even if
 service URL is added
 to supported_domains.

 root@saturn:~# svtplay-dl
 http://www.tvplay.lv/parraides/go4speed-tv/353643?autostart=true
 ERROR That site is not supported. Make a ticket or send a message

 What link for tv3play did you use? I tried one at random, and had no
 issues, and there were no redirects to tvplay.lv.

I used http://tv3play.lv/ Still get the redirects to tvplay.lv.


 I could not find any configuration or arguments to change behaviour. If 
 special
 care needs to be taken for some services I think it should be
 reflected in the docs
 some, preferably accompanied with examples.

 I don't think that's the case, usually.

Ok.


 Please check with upstream if it is possible to fix issues before an upload 
 to
 Debian. If the timeframe for fixes is too long, I think we should go forth 
 and
 upload it anyway; of course forwarding bugs upstream.

 I've spoken to upstream. Hopefully we can get a new release, with as
 many of these issues fixed as possible within the next few days.
 Thanks a lot for the review (and the bug reports :-)).

Neat!


--
Per


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2014-02-05 Thread Olof Johansson
On 2014-02-04 23:57 +0100, Per Andersson wrote:
 Hi!
 
 Packaging looks good!
 
 
 Streaming from UR Play is not possible at all. upstream commit a7c9043301
 fixes this. Please include at least that in a new package.

This is not quite correct. Some videos lack a HD stream exposed via
flash.  See bug report here: https://github.com/spaam/svtplay-dl/issues/61
But nonetheless, I agree, should be part of the upload.



 root@saturn:~# svtplay-dl http://tv.nrk.no/program/koid75007313/lysleite
 ERROR That site is not supported. Make a ticket or send a message

Works with latest upstream.


 root@saturn:~# svtplay-dl http://www.twitch.tv/wcs_europe2
 root@saturn:~# svtplay-dl http://www.justin.tv/femjesseart
 root@saturn:~# svtplay-dl 
 http://sverigesradio.se/sida/artikel.aspx?programid=83artikel=5775888;
 root@saturn:~# svtplay-dl 
 http://www.tv3play.no/programmer/the-crazy-ones/349981?autostart=true
 root@saturn:~# svtplay-dl 
 http://www.tv3play.lt/programos/moterys-meluoja-geriau/353249?autostart=true
 root@saturn:~# svtplay-dl 
 http://www.tv3play.ee/sisu/midsomeri-morvad/352857?autostart=true
 root@saturn:~# svtplay-dl 
 http://www.viasat4play.no/programmer/dads--1/349783?autostart=true
 root@saturn:~# svtplay-dl http://www.kanal9play.se/program/177466428
 root@saturn:~# svtplay-dl 
 http://www.svd.se/kultur/amster-moter-veronica-maggio_8954474.svd
 root@saturn:~# svtplay-dl 
 http://www.sydsvenskan.se/webb-tv/webb-tv-sport/tv-zlatan-azinovic-gor-debut-for-mff/
 root@saturn:~# svtplay-dl 
 http://www.kanal5play.se/program/472772441/artikel/481104607

ACK


 root@saturn:~# svtplay-dl http://www.tv4.se/snn-news/avsnitt/avsnitt-4-169107
 ERROR Something wrong with that url
 ERROR Error code: 404

Premium content? Not sure. Can reproduce with your URL, but not with
randomly chosen video.

 root@saturn:~# svtplay-dl
 http://tv.aftonbladet.se/webbtv/nyheter/brott-och-straff/brottscentralen/article32782.ab
 ERROR That site is not supported. Make a ticket or send a message

Ack.

 The site tv3play.lv redirects to tvplay.lv. Does not work even if
 service URL is added
 to supported_domains.
 
 root@saturn:~# svtplay-dl
 http://www.tvplay.lv/parraides/go4speed-tv/353643?autostart=true
 ERROR That site is not supported. Make a ticket or send a message

What link for tv3play did you use? I tried one at random, and had no
issues, and there were no redirects to tvplay.lv.

 I could not find any configuration or arguments to change behaviour. If 
 special
 care needs to be taken for some services I think it should be
 reflected in the docs
 some, preferably accompanied with examples.

I don't think that's the case, usually.

 Please check with upstream if it is possible to fix issues before an upload to
 Debian. If the timeframe for fixes is too long, I think we should go forth and
 upload it anyway; of course forwarding bugs upstream.

I've spoken to upstream. Hopefully we can get a new release, with as
many of these issues fixed as possible within the next few days.
Thanks a lot for the review (and the bug reports :-)).

Cheers,
-- 
 --- 
| Olof Johansson  http://stdlib.se/ |
|  irc: zibri   https://github.com/olof |
 --- 


signature.asc
Description: Digital signature


Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2014-02-04 Thread Per Andersson
Hi!

Packaging looks good!


Streaming from UR Play is not possible at all. upstream commit a7c9043301
fixes this. Please include at least that in a new package.


Found some more issues when I tested the new package.


Streaming from many sites mentioned in the docs fail:

root@saturn:~# svtplay-dl http://tv.nrk.no/program/koid75007313/lysleite
ERROR That site is not supported. Make a ticket or send a message

root@saturn:~# svtplay-dl http://www.twitch.tv/wcs_europe2
ERROR Can't find swf file.

root@saturn:~# svtplay-dl http://www.justin.tv/femjesseart
ERROR Can't find swf file.

root@saturn:~# svtplay-dl
http://sverigesradio.se/sida/artikel.aspx?programid=83artikel=5775888;
ERROR Can't find video file

root@saturn:~# svtplay-dl
http://www.tv3play.no/programmer/the-crazy-ones/349981?autostart=true
ERROR Cant find video file

root@saturn:~# svtplay-dl
http://www.tv3play.lt/programos/moterys-meluoja-geriau/353249?autostart=true
ERROR Cant find video file

root@saturn:~# svtplay-dl
http://www.tv3play.ee/sisu/midsomeri-morvad/352857?autostart=true
ERROR Cant find video file

root@saturn:~# svtplay-dl
http://www.viasat4play.no/programmer/dads--1/349783?autostart=true
ERROR Cant find video file

root@saturn:~# svtplay-dl http://www.kanal9play.se/program/177466428
ERROR Can't find video file

root@saturn:~# svtplay-dl
http://www.svd.se/kultur/amster-moter-veronica-maggio_8954474.svd
INFO Outfile: amster-mter-veronica-maggio-kultur-svd.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.StreamNotFound

root@saturn:~# svtplay-dl
http://www.sydsvenskan.se/webb-tv/webb-tv-sport/tv-zlatan-azinovic-gor-debut-for-mff/
ERROR Can't find video file

root@saturn:~# svtplay-dl
http://www.kanal5play.se/program/472772441/artikel/481104607
ERROR Can't find video file

root@saturn:~# svtplay-dl http://www.tv4.se/snn-news/avsnitt/avsnitt-4-169107
ERROR Something wrong with that url
ERROR Error code: 404


Aftonbladet use the domain tv.aftonbladet.se. Does not work even if
service URL is
added to supported_domains.

root@saturn:~# svtplay-dl
http://tv.aftonbladet.se/webbtv/nyheter/brott-och-straff/brottscentralen/article32782.ab
ERROR That site is not supported. Make a ticket or send a message


The site tv3play.lv redirects to tvplay.lv. Does not work even if
service URL is added
to supported_domains.

root@saturn:~# svtplay-dl
http://www.tvplay.lv/parraides/go4speed-tv/353643?autostart=true
ERROR That site is not supported. Make a ticket or send a message


I could not find any configuration or arguments to change behaviour. If special
care needs to be taken for some services I think it should be
reflected in the docs
some, preferably accompanied with examples.


Please check with upstream if it is possible to fix issues before an upload to
Debian. If the timeframe for fixes is too long, I think we should go forth and
upload it anyway; of course forwarding bugs upstream.


--
Per


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2014-02-02 Thread Olof Johansson
On 2014-01-28 23:32 +0100, Per Andersson wrote:
 Some comments:
 
 * The Python Policy 1.4.2 states that /usr/bin/python should be used
 as interpreter
   in favour of /usr/bin/env python. [0]
 * The license is Expat.
 * Bump Standards-Version to 3.9.5.
 
 If you need a sponsor, ping me when the package is ready for another
 review round
 and upload.

Hi,

I've uploaded a new version to mentors.d.n, addressing your comments
and importing a new upstream version (0.9.2014.01.18). The source
package is available at:

  https://mentors.debian.net/package/svtplay-dl

The git repository for it is at github:

  https://github.com/olof/debian-svtplay-dl

Note that I've been rebasing the master-next branch, but I've pushed
the old master-next as archived/20140202/master-next for now, for
comparison.

Thanks a lot for the review!
-- 
 --- 
| Olof Johansson  http://stdlib.se/ |
|  irc: zibri   https://github.com/olof |
 --- 


signature.asc
Description: Digital signature


Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2014-01-29 Thread Olof Johansson
On 2014-01-28 23:32 +0100, Per Andersson wrote:
 Some comments:
 
 * The Python Policy 1.4.2 states that /usr/bin/python should be used
 as interpreter
   in favour of /usr/bin/env python. [0]
 * The license is Expat.
 * Bump Standards-Version to 3.9.5.
 
 If you need a sponsor, ping me when the package is ready for another
 review round
 and upload.

I'll fix your comments and import a new upstream version within the
next few days. Thanks a lot!

-- 
 --- 
| Olof Johansson  http://stdlib.se/ |
|  irc: zibri   https://github.com/olof |
 --- 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2014-01-28 Thread Per Andersson
Hi!

Great work!

Some comments:

* The Python Policy 1.4.2 states that /usr/bin/python should be used
as interpreter
  in favour of /usr/bin/env python. [0]
* The license is Expat.
* Bump Standards-Version to 3.9.5.

If you need a sponsor, ping me when the package is ready for another
review round
and upload.


[0] 
https://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html#s-interpreter_loc


--
Per


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2013-10-28 Thread Olof Johansson
I've just uploaded the latest upstream release to mentors. If anybody
have the time and interest, I would really appreciate review comments!

https://mentors.debian.net/package/svtplay-dl

Thanks,
-- 
 --- 
| Olof Johansson  http://stdlib.se/ |
|  irc: zibri   https://github.com/olof |
 --- 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2013-10-28 Thread Cristian Ionescu-Idbohrn
On Mon, 28 Oct 2013, Olof Johansson wrote:

 I've just uploaded the latest upstream release to mentors. If anybody
 have the time and interest, I would really appreciate review comments!

 https://mentors.debian.net/package/svtplay-dl

Promissing.
One of my tests failed to download the subtitles, though:

$ svtplay-dl -H -S http://urplay.se/Produkter/174681-Mitt-Sardinien-Middagen
INFO Outfile: mitt-sardinien-middagen-ur-play.ts
[37/38][..] ETA: 0:00:00
Traceback (most recent call last):
  File /usr/lib/python2.7/runpy.py, line 162, in _run_module_as_main
__main__, fname, loader, pkg_name)
  File /usr/lib/python2.7/runpy.py, line 72, in _run_code
exec code in run_globals
  File /usr/bin/svtplay-dl/__main__.py, line 12, in module
  File /usr/bin/svtplay-dl/svtplay_dl/__init__.py, line 137, in main

  File /usr/bin/svtplay-dl/svtplay_dl/__init__.py, line 79, in get_media

  File /usr/bin/svtplay-dl/svtplay_dl/service/urplay.py, line 37, in get
  File /usr/bin/svtplay-dl/svtplay_dl/utils/__init__.py, line 129, in 
subtitle_tt

KeyError: 'dur'


Cheers,

-- 
Cristian


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2013-10-28 Thread Olof Johansson
On 2013-10-28 19:31 +0100, Cristian Ionescu-Idbohrn wrote:
 On Mon, 28 Oct 2013, Olof Johansson wrote:
 
  I've just uploaded the latest upstream release to mentors. If anybody
  have the time and interest, I would really appreciate review comments!
 
  https://mentors.debian.net/package/svtplay-dl
 
 Promissing.
 One of my tests failed to download the subtitles, though:

Interesting,

I'll forward this to upstream. Thanks for the report!

-- 
 --- 
| Olof Johansson  http://stdlib.se/ |
|  irc: zibri   https://github.com/olof |
 --- 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2013-10-28 Thread Olof Johansson
On 2013-10-28 19:42 +0100, Olof Johansson wrote:
 On 2013-10-28 19:31 +0100, Cristian Ionescu-Idbohrn wrote:
  Promissing.
  One of my tests failed to download the subtitles, though:
 
 Interesting,
 
 I'll forward this to upstream. Thanks for the report!

Reported as https://github.com/spaam/svtplay-dl/issues/53.

Thanks again,
-- 
 --- 
| Olof Johansson  http://stdlib.se/ |
|  irc: zibri   https://github.com/olof |
 --- 


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2013-10-28 Thread Cristian Ionescu-Idbohrn
On Mon, 28 Oct 2013, Olof Johansson wrote:
 On 2013-10-28 19:42 +0100, Olof Johansson wrote:
  On 2013-10-28 19:31 +0100, Cristian Ionescu-Idbohrn wrote:
   Promissing.
   One of my tests failed to download the subtitles, though:
 
  Interesting,
 
  I'll forward this to upstream. Thanks for the report!

 Reported as https://github.com/spaam/svtplay-dl/issues/53.

Great.  Upstream found the bug and corrected the source with commit
4348b931675db67c35756fc654b76139ed74c3dc (subtitle_tt: urplay changed from
dur till duration).

New observation.  Video/sound synchronization isn't perfect, compared to
this download:

ffmpeg -i 
'http://130.242.59.75/ondemand/_definst_/mp4:174000-174999/174681-50.mp4/playlist.m3u8'
 -vcodec copy middagen.174681-50.mp4

Same url: http://urplay.se/Produkter/174681-Mitt-Sardinien-Middagen
Player: mplayer.


Cheers,

-- 
Cristian


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#709922: ITP: svtplay-dl -- media downloader for play sites (e.g. SVT Play)

2013-05-26 Thread Olof Johansson
Package: wnpp
Severity: wishlist

* Package name: svtplay-dl
  Version : 0.9.2013.05.06
  Upstream Author : Johan Andersson j...@i19.se
* URL : https://github.com/spaam/svtplay-dl
* License : MIT 
  Programming Lang: python
  Description : media downloader for play sites (e.g. SVT Play)

This program is able to download and extract media from many popular
video on demand sites (sometimes known as play service). It initially
supported Swedish public TV's SVT Play, but today supports many 
similar services (including TV4Play, Kanal5Play, Viaplay, HBO, RUV, NRK,
Vimeo and more).



Regards,
-- 
 --- 
| Olof Johansson  http://stdlib.se/ |
|  irc: zibri   https://github.com/olof |
 --- 


signature.asc
Description: Digital signature