View unanswered posts    View active topics

All times are UTC - 6 hours

Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: IMDB and TV episodes
PostPosted: Tue Dec 04, 2007 10:10 pm 
Joined: Mon Jul 31, 2006 10:41 pm
Posts: 149
This could be used to manually enter IMDB numbers in Mythvideo. The script, although ugly looking, seems to work and should return all seasons when run. I couldn't figure out how to get the number into the script, but maybe someone else can. Make sure the script has no line breaks.

Go to and do a search for the title of the TV series. Get the tt number from the selected series. Example: Gunsmoke 1955 series is:
Substitute the 0047736 for the ####### in the script below.
The script needs to be made executable, then run the script. Sample output below.

# cat /usr/local/bin/
#! /bin/bash
lynx -source | grep -o Season.*tt.* | sed 's/<a\ href=\"\/title\///g' | sed '/Season [1-9]\,/s/Season /s0/g' | sed '/Episode [1-9]\:/s/\, Episode /e0/g' | sed 's/\, Episode /e/g' | sed 's/\://g' | sed 's/\/\">/ /g' | sed 's/<.*Orig/     - Orig/g' | sed 's/<.*$//g' | sed 's/^Season /s/g'

s01e01 tt0594243 Matt Gets It - Original Air Date 10 September 1955
s01e02 tt0594154 Hot Spell - Original Air Date 17 September 1955
s01e03 tt0594593 Word of Honor - Original Air Date 1 October 1955
s01e04 tt0594147 Home Surgery - Original Air Date 8 October 1955
s01e05 tt0594285 Obie Tater - Original Air Date 15 October 1955
s01e06 tt0594272 Night Incident - Original Air Date 29 October 1955

 Post subject:
PostPosted: Thu Dec 13, 2007 4:00 pm 
Joined: Wed Sep 13, 2006 2:14 pm
Posts: 20
If you replace ####### with $1 in your script, then the user can pass in the IMBD value as a parameter, instead of editing the script every time...

Great idea though! I moved a bunch of Planet Earth HD episodes from TV Recordings to MythVideo, since the TV partition was filling up. I didn't realize that IMDB did TV series, so now I can get the info that was missing for each episode.

I also like the fact that the videos won't get accidentally erased by my wife or 17 moth old daughter (she loves to hit the buttons on my RF remote; she doesn't have to aim it to do damage...)



Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu