Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nobert's full-sized avatar

Alex Nobert nobert

View GitHub Profile

Keybase proof

I hereby claim:

  • I am nobert on github.
  • I am nobert (https://keybase.io/nobert) on keybase.
  • I have a public key whose fingerprint is 0727 8471 E1C0 57F0 53CA 5D65 E3FF FEE0 F91C 9F17

To claim this, I am signing this object:

@nobert
nobert / date2episode.rb
Created January 29, 2010 21:31
sabnzbd+ post-processing script that translates dated filenames (Show YYYY-MM-DD) to S##E## filenames. Pretty messy with very little validation and too many system calls. Relies on sabnzbd+ 0.5's ability to sort dated episodes
#!/usr/bin/ruby
require "rexml/document"
include REXML # so that we don't have to prefix everything
require 'net/http'
RETRY_INTERVAL = '30' # retry time in minutes
THETVDB_API_KEY = 'your-thetvdb-api-key'
TEMP_DIRECTORY = '/tmp'
CURL_PATH = '/usr/bin/curl'