Movie Info Plus - Manage Icons, Posters, FanArt, .NFO's & more for Movies & TV Shows

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hitcher Online
Skilled Skinner
Posts: 9,930
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #61
Rocky5 Wrote:
Code:
@echo off

:start
dir /b "*.avi">>list.txt
dir /b "*.bin">>list.txt
dir /b "*.mkv">>list.txt
dir /b "*.rmvb">>list.txt
dir /b "*.mp4">>list.txt

SetLocal EnableDelayedExpansion
For /F "tokens=* delims=" %%A in (list.txt) Do (
Set TxtLine=%%A
Set TxtLine=!TxtLine:.avi=!
Set TxtLine=!TxtLine:.rmvb=!
Set TxtLine=!TxtLine:.mkv=!
Set TxtLine=!TxtLine:.mp4=!
Set TxtLine=!TxtLine:.bin=!
echo !TxtLine!>>tmp.txt)
ren "tmp.txt" "DirList.txt"

For /F "tokens=* delims=" %%a in (DirList.txt) do md "%%a"

for /f "tokens=* delims=" %%b in (DirList.txt) do set Folders=%%b
for /f "tokens=* delims=" %%c in (List.txt) do set Files=%%c

move "%Files%" "%Folders%"

del /q "List.txt"
del /q "DirList.txt"

if exist "*.avi" goto start
if exist "*.mp4" goto start
if exist "*.rmvb" goto start
if exist "*.bin" goto start
if exist "*.mkv" goto start
Worked great. I've added .iso, .img and .vob for my collection but would like to know how I can also move the .nfo, .tbn and -fanart.jpg into the new folders as well please?

[Image: sig_zps3af3b48e.jpg]
find quote
JiveTalker Offline
Senior Member
Posts: 114
Joined: Nov 2008
Reputation: 0
Location: Bristol, UK
Question  Double Episodes and "No TV Show Data Exsists" Error Post: #62
fekker Wrote:the important part is the s01e01 part of the filename, the rest can be pretty much anything the os supports. But this does mean that you need the season number and episode number in the filename.

Do you think any extra logic will be needed for double episodes?
e.g. Lost.S04E13-E14

I guess this may also appear as Lost.S04E13-14 or Lost.S04.E13.S04.E14

I'm having big problems (with 2276 Test Build) at the moment which won't find ANY of my tv series! My folder structure is right with subfolders for each season (e.g. Z:\H D T V\Lost\Season 4) but clicking on the "Load TV Shows" button displays "No TV Show data exsists for: H D T V". Each series has a basic NFO file at the top level (created from IMDb MyMovies page, using your utility) and (most) files are named TVShow.SxxExxRandomText.mkv but nothing is found.

Do you have any suggestions as to where I might be going wrong? Setting a "Movie Folder Location" and clicking on "Load Movies "still works fine.

Jive talkin, just isnt a crime
find quote
fekker Offline
Posting Freak
Posts: 1,545
Joined: Oct 2008
Reputation: 30
Post: #63
JiveTalker Wrote:Do you think any extra logic will be needed for double episodes?
e.g. Lost.S04E13-E14

I guess this may also appear as Lost.S04E13-14 or Lost.S04.E13.S04.E14

I'm having big problems (with 2276 Test Build) at the moment which won't find ANY of my tv series! My folder structure is right with subfolders for each season (e.g. Z:\H D T V\Lost\Season 4) but clicking on the "Load TV Shows" button displays "No TV Show data exsists for: H D T V". Each series has a basic NFO file at the top level (created from IMDb MyMovies page, using your utility) and (most) files are named TVShow.SxxExxRandomText.mkv but nothing is found.

Do you have any suggestions as to where I might be going wrong? Setting a "Movie Folder Location" and clicking on "Load Movies "still works fine.

I still have to code the dual episode portion

for your tv shows, add the z:\H D T V\Lost folder for z:\H D T V\Lost\Season 4

Here's the example from the getting started screen, i'll have to add a help system as there are alot of different options and 0 documentation.

Directory layout example:

Quote:c:\media
|-- Movies
| |-- Movie 1
| | |___> Movie 1 Media Files
| |
| |-- Movie 2
| | |___> Movie 2 Media Files
| |
| |-- Movie 3
| | |___> Movie 3 Media Files
| |
| |-- Movie 4
| |___> Movie 4 Media Files
|
|
|-- TVShows
|---- TV Show 1
| |---- Season 1
| | |___> TV Show 1 - Season 1 Media files
| |
| |---- Season 2
| | |___> TV Show 1 - Season 2 Media files
| |
| |---- Season 3
| | |___> TV Show 1 - Season 3 Media files
| |
| |
|---- TV Show 2
| |---- Season 1
| | |___> TV Show 1 - Season 1 Media files
| |
| |---- Season 2
| |___> TV Show 1 - Season 2 Media files
|
|---- TV Show 3
| |---- All Seasons
| |
| |___> TV Show 3 - All Media files

For Movies you would add
c:\media\Movies

For TV Shows you would add the following folders (each shows folder)
c:\media\TVShows\Tv Show 1
c:\media\TVShows\Tv Show 2
c:\media\TVShows\Tv Show 3
(This post was last modified: 2008-12-14 08:27 by fekker.)
find quote
stanley87 Offline
Skilled Python Coder
Posts: 555
Joined: Sep 2006
Reputation: 2
Location: Chch, New Zealand
Post: #64
can someone explain Trailers for movies to me?
Thers an option in XBMC to play a trailer but i don't have trailers :-S
Do you actually have to have the downloaded trailer in the folder with the -trailer extension?

I thought it was something like, you have a -trailer.txt file and inside it has the url of the trailer at apple trailers and then xbmc just streams this video... ??
find quote
JiveTalker Offline
Senior Member
Posts: 114
Joined: Nov 2008
Reputation: 0
Location: Bristol, UK
Thumbs Up  TV Shows Function Working Well Post: #65
fekker Wrote:I still have to code the dual episode portion

Fair enough. How should a special such as "24 Redemption" be handled? I tried creating it as HDTV\24\Redemption\24-Redemption.720p.mkv but that didn't work. From what you've said before I assume the season folder name itself isn't important but how should the file be named if it doesn't fit nicely into the SxxExx structure?


fekker Wrote:for your tv shows, add the z:\H D T V\Lost folder for z:\H D T V\Lost\Season 4
Thanks, that worked a treat! I've successfully scanned through my HD TV episodes folder and MIP retieved data for every episode (over 300 of them!). There were a couple of exceptions with obscure or unusual structures but overall it went very, very well. Big Grin

I know this is early days for the tv shows function so forgive me if I raise issues that are already on your todo list! :o

The interface to tv shows seems to work in a competely different way to the movies interface. Firstly with movies I only need to specify the top level folder but with tv shows I have to add each show individually. Movies allows me to tick and untick individual entries in the folder selection list but tv shows doesn't. With movies I can click on the "Load Movies" button and it scans though my folders and builds up a list in a couple of seconds. With Tv Shows clicking on the "Load TV Shows" button goes off and gets images and show summaries immediately, even if the application is in "Display" mode. Also, once the data has been downloaded there doesn't seem to be any way to choose which of the artwork I prefer, it just automatically chooses it for me. Are all these issues because your movies interface has evolved over the last couple of months and the tv shows interface is just at the "getting it to work" stage?

What does the "Update TV Shows" button do? Is the idea that once I've added the paths to all my TV series I can just click on this button periodically to get any new episodes that have been added without having to reload all the existing ones? Will "Icons and Box Shots", "Fanart" and "Posters" be redundant with tv shows? If so it may be better to hide those tabs.

Overall it's looking really good!

Minor Bugs:
1. Clicking on an episode that has data but no image generates a file not found error (e.g. Currently "Samantha Who?" Season 2 episodes)

Other Issues:
1. When Viewing TV episodes the episode screen shot is stretched to a very large size although usually the actual image is very small. Perhaps the images should be displayed at a maximum size of twice the actual resolution or even just actual size?

2. There is no option to remove a TV Show from Folder Selection other than to remove all of them. It would be nice if the interface allowed a parent folder to be selected (e.g. "Z:\HDTV\") and then it listed all of the folders directly within that folder with a checkbox next to each, similar to the option for movies to select individual folder trees to process. That way an individual series or list of series could be processed ignoring all the ones that have been off air for a while.

For a first stab at the tv show mode this is looking very, very good. Well done! Smile
JiveTalker

Jive talkin, just isnt a crime
find quote
Rocky5 Offline
Alaska Group
Posts: 564
Joined: Jun 2008
Location: Scotland
Post: #66
OK here is a better one works better than before now includes NFO, ISO, IMG, TBN, and VOB though not sure how VOB will work as i don't have any also it will only add files that exist to the list.txt.

how is fanart named for films? Filmname-Fanart.jpg

Code:
@echo off
:prep
:: removes old files first if pressent
del /q "List.txt"
del /q "DirList.txt"

:start
:: will add files that only exist to the list.txt
if exist "*.avi" dir /b "*.avi">>list.txt
if exist "*.bin" dir /b "*.bin">>list.txt
if exist "*.mkv" dir /b "*.mkv">>list.txt
if exist "*.rmvb" dir /b "*.rmvb">>list.txt
if exist "*.mp4" dir /b "*.mp4">>list.txt
if exist "*.iso" dir /b "*.iso">>list.txt
if exist "*.img" dir /b "*.img">>list.txt
if exist "*.vob" dir /b "*.vob">>list.txt
if exist "*.tbn" dir /b "*.tbn">>list.txt
if exist "*.nfo" dir /b "*.nfo">>list.txt

:: removes the extensions of the files so that when creating folders it works
SetLocal EnableDelayedExpansion
For /F "tokens=* delims=" %%A in (list.txt) Do (
Set TxtLine=%%A
Set TxtLine=!TxtLine:.avi=!
Set TxtLine=!TxtLine:.rmvb=!
Set TxtLine=!TxtLine:.mkv=!
Set TxtLine=!TxtLine:.mp4=!
Set TxtLine=!TxtLine:.bin=!
Set TxtLine=!TxtLine:.iso=!
Set TxtLine=!TxtLine:.img=!
Set TxtLine=!TxtLine:.vob=!
Set TxtLine=!TxtLine:.tbn=!
Set TxtLine=!TxtLine:.nfo=!
echo !TxtLine!>>tmp.txt)
ren "tmp.txt" "DirList.txt"

:: does the hard work of creating and naming the files to match the folder
for /F "tokens=* delims=" %%a in (DirList.txt) do md "%%a"
for /f "tokens=* delims=" %%b in (DirList.txt) do set Folders=%%b
for /f "tokens=* delims=" %%c in (List.txt) do set Files=%%c

:: moves the files into there folders
move "%Files%" "%Folders%"

:: removes the files to start again
del /q "List.txt"
del /q "DirList.txt"

:: if a file of this type still exist it will try again
if exist "*.avi" goto start
if exist "*.mp4" goto start
if exist "*.rmvb" goto start
if exist "*.bin" goto start
if exist "*.mkv" goto start
if exist "*.iso" goto start
if exist "*.img" goto start
if exist "*.vob" goto start
if exist "*.tbn" goto start
if exist "*.nfo" goto start

:: cleans up after its done
del /q "List.txt"
del /q "DirList.txt"

undo batch.
should read File Not Found constant once finished you will get an other error then close the batch.

Code:
@echo off
:prep
Del /q "move.txt"
md "../Undo Create Folders"

:start

dir /b /s "*.avi">>move.txt
dir /b /s "*.bin">>move.txt
dir /b /s "*.mkv">>move.txt
dir /b /s "*.rmvb">>move.txt
dir /b /s "*.mp4">>move.txt
dir /b /s "*.iso">>move.txt
dir /b /s "*.img">>move.txt
dir /b /s "*.vob">>move.txt
dir /b /s "*.tbn">>move.txt
dir /b /s "*.nfo">>move.txt

for /f "tokens=* delims=" %%c in (move.txt) do set Files=%%c

move "%Files%" "../Undo Create Folders"

Del /q "move.txt"

goto start
(This post was last modified: 2008-12-14 16:55 by Rocky5.)
find quote
Hitcher Online
Skilled Skinner
Posts: 9,930
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #67
Rocky5 Wrote:how is fanart named for films? Filmname-Fanart.jpg

Yep.

[Image: sig_zps3af3b48e.jpg]
find quote
Hitcher Online
Skilled Skinner
Posts: 9,930
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #68
Fanart added -

Code:
@echo off
:prep
:: removes old files first if pressent
del /q "List.txt"
del /q "DirList.txt"

:start
:: will add files that only exist to the list.txt
if exist "*.avi" dir /b "*.avi">>list.txt
if exist "*.bin" dir /b "*.bin">>list.txt
if exist "*.mkv" dir /b "*.mkv">>list.txt
if exist "*.rmvb" dir /b "*.rmvb">>list.txt
if exist "*.mp4" dir /b "*.mp4">>list.txt
if exist "*.iso" dir /b "*.iso">>list.txt
if exist "*.img" dir /b "*.img">>list.txt
if exist "*.vob" dir /b "*.vob">>list.txt
if exist "*.tbn" dir /b "*.tbn">>list.txt
if exist "*.nfo" dir /b "*.nfo">>list.txt
if exist "*-fanart.jpg" dir /b "*-fanart.jpg">>list.txt

:: removes the extensions of the files so that when creating folders it works
SetLocal EnableDelayedExpansion
For /F "tokens=* delims=" %%A in (list.txt) Do (
Set TxtLine=%%A
Set TxtLine=!TxtLine:.avi=!
Set TxtLine=!TxtLine:.rmvb=!
Set TxtLine=!TxtLine:.mkv=!
Set TxtLine=!TxtLine:.mp4=!
Set TxtLine=!TxtLine:.bin=!
Set TxtLine=!TxtLine:.iso=!
Set TxtLine=!TxtLine:.img=!
Set TxtLine=!TxtLine:.vob=!
Set TxtLine=!TxtLine:.tbn=!
Set TxtLine=!TxtLine:.nfo=!
Set TxtLine=!TxtLine:-fanart.jpg=!
echo !TxtLine!>>tmp.txt)
ren "tmp.txt" "DirList.txt"

:: does the hard work of creating and naming the files to match the folder
for /F "tokens=* delims=" %%a in (DirList.txt) do md "%%a"
for /f "tokens=* delims=" %%b in (DirList.txt) do set Folders=%%b
for /f "tokens=* delims=" %%c in (List.txt) do set Files=%%c

:: moves the files into there folders
move "%Files%" "%Folders%"

:: removes the files to start again
del /q "List.txt"
del /q "DirList.txt"

:: if a file of this type still exist it will try again
if exist "*.avi" goto start
if exist "*.mp4" goto start
if exist "*.rmvb" goto start
if exist "*.bin" goto start
if exist "*.mkv" goto start
if exist "*.iso" goto start
if exist "*.img" goto start
if exist "*.vob" goto start
if exist "*.tbn" goto start
if exist "*.nfo" goto start
if exist "*-fanart.jpg" goto start

:: cleans up after its done
del /q "List.txt"
del /q "DirList.txt"

[Image: sig_zps3af3b48e.jpg]
find quote
Rocky5 Offline
Alaska Group
Posts: 564
Joined: Jun 2008
Location: Scotland
Post: #69
Code:
@echo off
:prep
:: removes old files first if present and unhides them all
attrib -h "*.*"
del /q "List.txt"
del /q "DirList.txt"

:start
:: will add files that only exist to the list.txt
if exist "*.avi" dir /b "*.avi">>list.txt
if exist "*.bin" dir /b "*.bin">>list.txt
if exist "*.mkv" dir /b "*.mkv">>list.txt
if exist "*.rmvb" dir /b "*.rmvb">>list.txt
if exist "*.mp4" dir /b "*.mp4">>list.txt
if exist "*.iso" dir /b "*.iso">>list.txt
if exist "*.img" dir /b "*.img">>list.txt
if exist "*.vob" dir /b "*.vob">>list.txt
if exist "*.tbn" dir /b "*.tbn">>list.txt
if exist "*.nfo" dir /b "*.nfo">>list.txt
if exist "*-fanart.jpg" dir /b "*-fanart.jpg">>list.txt

:: removes the extensions of the files so that when creating folders it works
SetLocal EnableDelayedExpansion
For /F "tokens=* delims=" %%A in (list.txt) Do (
Set TxtLine=%%A
Set TxtLine=!TxtLine:.avi=!
Set TxtLine=!TxtLine:.rmvb=!
Set TxtLine=!TxtLine:.mkv=!
Set TxtLine=!TxtLine:.mp4=!
Set TxtLine=!TxtLine:.bin=!
Set TxtLine=!TxtLine:.iso=!
Set TxtLine=!TxtLine:.img=!
Set TxtLine=!TxtLine:.vob=!
Set TxtLine=!TxtLine:.tbn=!
Set TxtLine=!TxtLine:.nfo=!
Set TxtLine=!TxtLine:-fanart.jpg=!
echo !TxtLine!>>tmp.txt)
ren "tmp.txt" "DirList.txt"

:: does the hard work of creating and naming the files to match the folder
for /F "tokens=* delims=" %%a in (DirList.txt) do md "%%a"
for /f "tokens=* delims=" %%b in (DirList.txt) do set Folders=%%b
for /f "tokens=* delims=" %%c in (List.txt) do set Files=%%c

:: moves the files into there folders
move "%Files%" "%Folders%"

:: removes the files to start again
del /q "List.txt"
del /q "DirList.txt"

:: if a file of this type still exist it will try again
if exist "*.avi" goto start
if exist "*.mp4" goto start
if exist "*.rmvb" goto start
if exist "*.bin" goto start
if exist "*.mkv" goto start
if exist "*.iso" goto start
if exist "*.img" goto start
if exist "*.vob" goto start
if exist "*.tbn" goto start
if exist "*.nfo" goto start
if exist "*-fanart.jpg" goto start

:: cleans up after its done
del /q "List.txt"
del /q "DirList.txt"

ok i hide my files so this wont work if you do that so made it unhide all files first before doing anything or you will be stuck in a loop.

as i forgot to lol and was sitting for like 30mins waiting.
(This post was last modified: 2008-12-14 21:20 by Rocky5.)
find quote
Hitcher Online
Skilled Skinner
Posts: 9,930
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #70
Thanks for that Rocky5, now to give Movie Info Plus a go.

[Image: sig_zps3af3b48e.jpg]
find quote
Post Reply