DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-05-07 20:34:56

thomasO
Member
Registered: 2009-05-07
Posts: 22

save.tv download-client

Dear DNS323 users,

I am looking for a script to download my tv recordings from save.tv. Save.tv is a programmable online video recorder service for  german TV channels (accessed via html web interface).

Maybe its possible to write a pearl script that logs in and downloads all currently available files (that are not yet downloaded)? 

Any ideas how to do it ( http://www.save.tv ) ?

Cheers, Thomas

Last edited by thomasO (2009-05-15 00:39:47)


DNS323 / miniDLNA Samsung mta patched / Transmission

Offline

 

#2 2009-05-15 01:14:29

thomasO
Member
Registered: 2009-05-07
Posts: 22

Re: save.tv download-client

now i start to reply to myself smile

I found a script that may does the trick. But curl is not available on the fun plug packages.. so what can i do?

i attached the script (see corrected script below)

Last edited by thomasO (2009-05-18 19:55:15)


DNS323 / miniDLNA Samsung mta patched / Transmission

Offline

 

#3 2009-05-15 10:31:33

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: save.tv download-client

You can get curl from KyleK: http://dns323.kood.org/forum/viewtopic. … 19&p=1
and the GNU version of wget from Uli: http://ffp.wolf-u.li/additional/net-misc/
However, my php package doesn't have curl support, so your script still won't work.

PS: It seems, Uli has everything you need. He has made an updated php with curl support:
http://ffp.wolf-u.li/additional/net-mis … 19.4-1.tgz
http://ffp.wolf-u.li/additional/net-mis … 11.4-2.tgz
http://ffp.wolf-u.li/additional/dev-lan … .2.9-1.tgz

You also need to fix the script. The following line won't work:

Code:

exec("/usr/local/bin/php4 -q /data/save.tv/bin/savetv.php >/dev/nul &");

Last edited by fonz (2009-05-15 13:59:22)

Offline

 

#4 2009-05-17 23:49:20

thomasO
Member
Registered: 2009-05-07
Posts: 22

Re: save.tv download-client

Hmmm... i installed all 3 progs. but curl is still not working:

/mnt/HD_a2/save.tv # php --version
PHP 5.2.9 (cli) (built: Feb 27 2009 23:12:44)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
/mnt/HD_a2/save.tv # php savetv.php

Fatal error: Call to undefined function curl_init() in /mnt/HD_a2/save.tv/savetv
.php on line 23


DNS323 / miniDLNA Samsung mta patched / Transmission

Offline

 

#5 2009-05-18 00:20:42

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: save.tv download-client

thomasO wrote:

Fatal error: Call to undefined function curl_init() in /mnt/HD_a2/save.tv/savetv

I checked Uli's package, and indeed, php --info doesn't list --with-curl. So I've added curl and recompiled php myself:
http://www.inreto.de/dns323/fun-plug/0. … .html#curl
http://www.inreto.de/dns323/fun-plug/0. … S.html#php

Remove Uli's packages before installing these:

Code:

funpkg -r curl php

Offline

 

#6 2009-05-18 09:13:48

thomasO
Member
Registered: 2009-05-07
Posts: 22

Re: save.tv download-client

wget doesnt work sad

/mnt/HD_a2/save.tv # php savetv.php
der Download der Datei Wir_sind_Kaiser (Spielzeit:20090514_0029) wird gestartet,
Dude!
/mnt/HD_a2/save.tv # wget: can't resolve symbol 'clock_getres'


ideas?

Last edited by thomasO (2009-05-18 19:48:08)


DNS323 / miniDLNA Samsung mta patched / Transmission

Offline

 

#7 2009-05-18 09:50:24

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: save.tv download-client

update uclibc.

Offline

 

#8 2009-05-18 19:54:07

thomasO
Member
Registered: 2009-05-07
Posts: 22

Re: save.tv download-client

download works.

thanks! :-)

you need:
  - curl
  - php with curl support
  - uclibc

you get it from fonz: http://www.inreto.de/dns323/fun-plug/0.5/PACKAGES.html

And you need the attached script (change username/password and change the path according to your setup)

Last edited by thomasO (2010-03-27 00:09:33)


Attachments:
Attachment Icon savetv.php.20090526.txt, Size: 10,520 bytes, Downloads: 423

DNS323 / miniDLNA Samsung mta patched / Transmission

Offline

 

#9 2010-03-27 13:47:13

thomasO
Member
Registered: 2009-05-07
Posts: 22

Re: save.tv download-client

update - save.tv changed a path and a form ID

Last edited by thomasO (2010-03-27 13:47:42)


Attachments:
Attachment Icon savetv.php.20100327.txt, Size: 10,546 bytes, Downloads: 302

DNS323 / miniDLNA Samsung mta patched / Transmission

Offline

 

#10 2010-04-22 23:16:25

thomasO
Member
Registered: 2009-05-07
Posts: 22

Re: save.tv download-client

save.tv changed again the interface. I dont know how to adapt.


DNS323 / miniDLNA Samsung mta patched / Transmission

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB