Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

Auto downloading TV - Show - Server --- WORKING ---

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Berkz
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Mon Aug 26, 2002 3:16 pm
Location: Iceland

Auto downloading TV - Show - Server --- WORKING ---

  • Quote

Post by Berkz » Sat Mar 11, 2006 1:52 am

I've been working a personal project and I'd like to share my findings.

My goal with this project was to create a (shell only) setup which downloads my favorite tv shows published by Eztvefnet automatically. It would then archive different tv shows into different directories. Because of limited hard disk space I also wanted a implement an auto deleting system which would find all the oldest episodes and delete them when reaching a certain maximum in hard disk space left. This way I could leave the server alone for a long period of time and really wouldn't have to worry about it at all. Everything would be 100% automatic.

I’ve been able to solve all these problems and have a working setup with some minor glitches. Here is a summary:

Automatic rss downloading and parsing = 100% working
Automaticly downloading torrents = 95% working. Let me explain :

Using bittorrent python software to download the torrents won’t allow me to automatically drop the torrents when they are done. So I had to create a separate cronjob which would delete the .torrent files when they would reach a certain age. The .torrent file gets deleted when it’s detected as being older than 8 hours. This causes bittorrent to drop the torrent. And moves the episode from a incomplete folder to a fresh episodes folder.

Archiving episodes. = 100% working (need’s better implementation)
Deleting oldest show’s = 100% working.

To be able to do this I’ve written plenty of script’s and here is an explanation of how these scripts works.


Main - Script - starts the Nucleus app which download’s the torrents. The Script takes care of renaming the torrent file from something like 154325 to 154325.torrent so that Bittorrent will recognise the file as a torrent. It then moves the torrent’s to the directory which I have Bittorrent whatching for torrents. This also deletes the torrent and moves the episode to the “fresh episodes” directory. I have this on crontab 1 every hour.

Btstart – script
Starts startbt script in screen mode. I let local.start start this script so that Bittorrent is automatically started when the machine is rebooted.

Startbt – Script
This starts BitTorrent with selected options and ulimit so that if BitTorrent crashes it will automatically restart.

Cleanspace – Script
This will detect if partition is 80% or more full and if so detect oldest files and delete them. I have this crontabed every 6 hours.

Archive – Script
This will move selected episodes to their respected directories. I really would like to see if someone can come up with a better way to do this. As of now you have to manually enter the name of each show and which directory it should be placed in. If someone can create something automatic here I would be extremely grateful.

Lastly I will post a link to a zip archive where u can find my scripts plus nucleus 1.07b which I used to get the torrent files. If u want to implement this using my scripts u will have to change them to fit your specific settings. I use crontab to execute these scripts at a regular basis. If u need help with setting this up I’ll be happy to try.. Also If you can improve this setup and share it with me I’d be very glad

Regards, Berkz

Link = http://rapidshare.de/files/15201136/auto-tv.rar.html
______________

Regards, Berkz
Top
dinominant
Tux's lil' helper
Tux's lil' helper
Posts: 102
Joined: Fri Oct 27, 2006 6:24 pm
Contact:
Contact dinominant
Website

  • Quote

Post by dinominant » Mon Nov 13, 2006 6:45 am

What torrent client did you use to get automatic rss downloading and parsing through the console?
Top
Berkz
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Mon Aug 26, 2002 3:16 pm
Location: Iceland

  • Quote

Post by Berkz » Mon Nov 13, 2006 1:26 pm

Been a long time since I was working on this one. But I was using the console version of the standard bittorrent client
______________

Regards, Berkz
Top
digitalb0y
n00b
n00b
User avatar
Posts: 55
Joined: Thu Jan 30, 2003 4:22 am
Location: Fburg, USA
Contact:
Contact digitalb0y
Website

  • Quote

Post by digitalb0y » Sun Nov 26, 2006 7:21 pm

The link does not work can you please repost your Scripts.

http://rapidshare.de/files/15201136/auto-tv.rar.html

Thanks,

digitalb0y
- Linux. The choice of a GNU generation.
Like Linux DVR's Check out http://Mythtvtalk.com
Top
Post Reply

4 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy