Jump to content


TVU Watcher in perl


  • Please log in to reply
5 replies to this topic

#1 imognimma

imognimma

    TVU Star

  • VIP
  • PipPipPip
  • 409 posts
  • 1 thanks
  • Gender:Male
  • Location:North Korea

Posted 30 September 2009 - 11:46 PM

first, if you don't know what a .tar.gz file is and never used a commandline, this isn't for you.

I got tired of manually checking all the shows I'm watching for new episodes, therefore I hacked a small perl script which does the monitoring automatically. If a new episode shows up on the mainpage, it is automatically added to the edk client.

- the script requires an sql database to keep track of the episodes it has already seen. any DB that is supported in perl via DBD/DBI should do. see the create.sql file on how the table should look like. (maybe I'll chance this to just use a flat file in the future, that should make it easier for the user to handle)
- only edk client tested right now is mldonkey (mlnet). any client that has a telnet interface and understands the "dllink" command should do.
- see the edk-config.pl file for the definition of database and mlnet connection parameters
- the file seasons.tvu contains the IDs of seasons to monitor, followed by a tab and a comment. the path to this file is specified in the $cfg_season variable in the tvuwatch.pl file.
- has been developed & tested & used under linux, may run in windows too.
- start once a day or so via cron.

ok, here we go:
http://rapidshare.co...tvuwatch.tar.gz

enjoy.

Edited by imognimma, 30 September 2009 - 11:47 PM.

Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image
---

#2 Che Guevara

Che Guevara

    Ghetto Coder

  • Root Admin
  • PipPipPipPipPip
  • 1,471 posts
  • 4 thanks
  • Gender:Male

Posted 11 October 2009 - 08:47 AM

Good, now make a QT frontend for it :)
"For God so loved the world that he gave his only beogtten Son, that whoever believes in him shall not perish but have eternal life" John 3:16

#3 imognimma

imognimma

    TVU Star

  • VIP
  • PipPipPip
  • 409 posts
  • 1 thanks
  • Gender:Male
  • Location:North Korea

Posted 11 October 2009 - 12:31 PM

View PostChe Guevara, on Oct 11 2009, 04:47 AM, said:

Good, now make a QT frontend for it :)

way tooooooo lazy .......

but I'll add a "watch show" feature (to get a notification when a new season shows up) and remove the need for a database by using a flat file instead. sometimes. yawn.
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image
---

#4 Che Guevara

Che Guevara

    Ghetto Coder

  • Root Admin
  • PipPipPipPipPip
  • 1,471 posts
  • 4 thanks
  • Gender:Male

Posted 11 October 2009 - 01:37 PM

Yeah but imagine a cross platform TVU watcher app, that would get us a step closer to world domination :P May be php qt will mature one day...
"For God so loved the world that he gave his only beogtten Son, that whoever believes in him shall not perish but have eternal life" John 3:16

#5 imognimma

imognimma

    TVU Star

  • VIP
  • PipPipPip
  • 409 posts
  • 1 thanks
  • Gender:Male
  • Location:North Korea

Posted 11 October 2009 - 11:24 PM

View PostChe Guevara, on Oct 11 2009, 09:37 AM, said:

Yeah but imagine a cross platform TVU watcher app, that would get us a step closer to world domination :P May be php qt will mature one day...

nah, dominating the world is too much of an effort. causes long working hours and such.

anyway, wrote a new version today which doesn't require a database anymore and also monitors shows for new seasons.
Posted ImagePosted Image
Posted ImagePosted Image
Posted ImagePosted Image
---

#6 Che Guevara

Che Guevara

    Ghetto Coder

  • Root Admin
  • PipPipPipPipPip
  • 1,471 posts
  • 4 thanks
  • Gender:Male

Posted 12 October 2009 - 11:42 AM

You should edit your post where it says it needs a DB then
"For God so loved the world that he gave his only beogtten Son, that whoever believes in him shall not perish but have eternal life" John 3:16




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users