LinHES Forums http://forum.linhes.org/ |
|
IMDB and TV episodes http://forum.linhes.org/viewtopic.php?f=3&t=17389 |
Page 1 of 1 |
Author: | mythedoff [ Tue Dec 04, 2007 10:10 pm ] |
Post subject: | IMDB and TV episodes |
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 http://www.imdb.com and do a search for the title of the TV series. Get the tt number from the selected series. Example: Gunsmoke 1955 series is: http://www.imdb.com/title/tt0047736/ Substitute the 0047736 for the ####### in the script below. The script needs to be made executable, then run the script. Sample output below. Code: # cat /usr/local/bin/getTVepisodes.sh
#! /bin/bash lynx -source http://www.imdb.com/title/tt#######/episodes | 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 |
Author: | cfoxga [ Thu Dec 13, 2007 4:00 pm ] |
Post subject: | |
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...) Chris |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |