Skip to content

Instantly share code, notes, and snippets.

@Tehnix
Last active August 29, 2015 14:15
Show Gist options
  • Save Tehnix/9e1ecb47e5139076a3e3 to your computer and use it in GitHub Desktop.
Save Tehnix/9e1ecb47e5139076a3e3 to your computer and use it in GitHub Desktop.
Things involved in a PVR for TV-Shows and Animes

This a list of things that a PTR should, at least, include. A first approach could use some sensible defaults, like targeting XBMC and Transmission, having a set priority of episode download qualities etc.

Web interface

  • Nice UI
  • Username/Password
  • Date/time
    • Use same time the server uses
    • Use the format: Thu, 31/12/2015

Download new episodes

  • Scrape TV databases for information
    • Anime: anidb.net
    • TV-Shows: TVRage.com, TheTVDB.com
  • Find torrents for show episodes
    • Anime: nyaa.se
    • TV-Shows: eztv.ch, kickass.to
  • Torrent/episode checks every n minutes
  • Transmission
    • IP:Port
    • Username/password
    • Download files location
    • Test button, to test the connection works

Post-processing

  • Choose folder to scan
  • Rename episode
    • Use the format (single episode): Season 02/Show Name - 2x03 - Ep Name.ext
    • and (multi episode): Season 02/Show Name - 2x03x04x05 - Ep Name.ext
  • Move episode into correct location and remove the rest of the files
  • Download/fetch meta-data
    • Show Metadata (tvshow.nfo)
    • Show Fanart (fanart.jpg)
    • Show Poster (folder.jpg)
    • Season All Poster (season-all.tbn)
    • Season Posters (season##.tbn)
    • Episode Metadata (Season##/filename.nfo)
    • Episode Thumbnails (Season##/filename.tbn)
  • Download subtitles for normal TV-Shows
    • Just default to english subtitles

Notifications

  • XBMC
    • Specify IP:Port to send to, and username/password
    • Test button, to test the connection works
    • Adds to library list
    • Notify when an episode has been added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment