XBMC Community Forum
Missing Movie Scanner - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: Missing Movie Scanner (/showthread.php?tid=118263)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


Missing Movie Scanner - null_pointer - 2011-12-31 06:19

Missing Movie Scanner

Scans your source folders for movie files that are missing from your library.

http://code.google.com/p/xbmc-missing-movie-search/downloads/list

Have you ever added a bunch of movies to your collection and then days or weeks later thought "I remember adding that movie so where the $%^& is it". If the Movie Info Scanner (TMDB, IMDB) can not find your movie on-line it will be skipped, if it is skipped it will not be added to your move library and it will not show up in your movie list.

This add-on should help track down movie files that are not added to your library, you can then rename the directory or file and run the "Scan for new content" on your source again.

Usage:

Install it
- Download the latest version zip
- Start XBMC
- Under System->Settings->Add-Ons->Install from zip file

Run it:
- Start XBMC
- Under Videos->Add-Ons
- Select "Missing Movie Scanner"
- Select "Show Source Paths"
- Select the source path you want to scan
- A progress dialog should show you the scan progress
- A results dialog should show a count of what was scanned/found/missing
- The movies in your source path that are not in your library will be listed

Testing:
I have tested on windows with a few hundred (450 odd) movies on a selection of network shares and local files.
All these moves were mostly singles files with a few in multi file stacks for the one movie.
If you use this add-on please post your results as this is still in testing mode.

Problems and Bugs:
To submit problems and bugs create a log. To turn on Debug logging in the Missing Movie Scanner Settings, reproduce the problem, shutdown xbmc.
Then upload the log to http://pastebin.com/ post to this thread the pastbin url along with the description of the problem.

On windows the xbmc log is under your user profile folder, on my windows 8 machine it is here:
C:\Users\<user name>\AppData\Roaming\XBMC\xbmc.log

This log gets overwritten with each launch of xbmc so make sure you turn on logging reproduce the problem shut down xbmc and then grab the log file without rerunning xbmc as it will stomp on your log file then. Actually is renames it to old.


Change Log:

Version 3.1.3 (20/5/2013)

- add more error handling
- all lower case matching
- split debug logging and missing item logging into 2 different options in settings

Version 3.1.0 (10/5/2013)

- add missing TV show detection
- add auto source detection and scanning
- add logging
- add blacklist words

Version 3.0.5 (29/3/2012)

- added smb uri parsing to strip out any usernames or passwords in SMB links

Version 3.0.3 (26/2/2012)

- use eval again as json.loads() has issues with unicode
- add a scan result dialog
- few small bug fixes

Version 3.0.2 (3/1/2012)

- use json.loads() instead of eval() to parse json responces
- show full path in results
- fix a bug with multipath sources

Version 3.0.1 (1/1/2012)

- Fix a bug with empty directories

Version 3.0 (31/12/2011)

- Compatible with Eden XBMC 11
- Use JSON-RPC GetDirectory() to walk the source paths
- Added scan result dialog
- Added progress dialog
- Moved all extensions that are scanned to the settings
- Cleaned up code and re-factored a bunch of stuff


The original thread can be found here:
http://forum.xbmc.org/showthread.php?tid=90258&page=13


- Martijn - 2011-12-31 06:22

Nice. Will try it right now.

You should change this:
<import addon="xbmc.python" version="1.0"/>
into
<import addon="xbmc.python" version="2.0"/>

for Eden


- Martijn - 2011-12-31 06:26

And one error log:
http://paste.ubuntu.com/788561/

error line 7808


- null_pointer - 2011-12-31 06:27

ok will do


- null_pointer - 2011-12-31 06:36

Hmmm, I think this might be an issue with the JSON-RPC call GetDirectory, the result looks like it will fail an eval call

PHP Code:
{
"id"1,
"jsonrpc""2.0",
"result": {
"files"null,
"limits": {
"end"0,
"start"0,
"total"0
}
}


PHP Code:
File "D:\XBMC Eden\portable_data\addons\plugin.video.mms\default.py"line 102in walk_Path
set_files 
= eval(jsonResult)
File "<string>"line 5in <module>
NameErrorname 'null' is not defined 

I can probably work around it though.


- Martijn - 2011-12-31 06:40

Let me point out i run the latest custom build of latest xbmc git code. So maybe there's PR waiting to fix this or maybe it is worth a trac if you are sure it's axbmc bug.


- null_pointer - 2011-12-31 06:55

Try version 3.0.1

I try/excepted it for now, will follow up the JSON-RPC guys in dev thread.


- Martijn - 2011-12-31 07:10

null_pointer Wrote:Try version 3.0.1

I try/excepted it for now, will follow up the JSON-RPC guys in dev thread.

That worked Smile
At least no errors and got missing movies reported.

Don't know if it is intentional but the dialog with the scanning text gets covered by a busy dialog. Not that experienced with the plug-in parts yet so wouldn't know if that is supposed to happen.

If you want to get rid of that busy dialog and just show the regular dialog:
Add this between line 182 and 188:
PHP Code:
xbmc.executebuiltin"Dialog.Close(busydialog)" 

If you are planning to send this to xbmc repo some day you should also include a license.txt

Edit;
Somethings wrong i think. It reports tvshow episode that are listed in the library. No way i have 240 episodes missing
Here's my debug log.
http://paste.ubuntu.com/788581/


- null_pointer - 2011-12-31 07:25

Quote:Don't know if it is intentional but the dialog with the scanning text gets covered by a busy dialog. Not that experienced with the plug-in parts yet so wouldn't know if that is supposed to happen.
I am not sure I see the same thing, this could be a skin difference issue, can you screen shot the overlap and post?
I only see the progress dialog when scanning is running and the results dialog when the scan finishes. the "busy-working" indicator for me is in the bottom right hand corner and not overlapping the dialogs.

Quote:Somethings wrong i think. It reports tvshow episode that are listed in the library. No way i have 240 episodes missing
It could be that your TV Shows are marked as TV Shows in your library, in short this add-on is currently only scanning and checking movies.


- Martijn - 2011-12-31 07:39

null_pointer Wrote:I am not sure I see the same thing, this could be a skin difference issue, can you screen shot the overlap and post?
I only see the progress dialog when scanning is running and the results dialog when the scan finishes. the "busy-working" indicator for me is in the bottom right hand corner and not overlapping the dialogs.

I use Aeon Nox. The Dialogs are a bit transparent so that's why I see the dialog on top of each other. Other skins probably don't have transparent ones so that's why you don't see it. So if you try that code i gave you would probably see the dialog.progress scanning the files and folders. Depends on what you want users to see Smile

If you want i can post one tomorrow. PC is already shutdown.
Quote:It could be that your TV Shows are marked as TV Shows in your library, in short this add-on is currently only scanning and checking movies.

lol Big Grin
Well that explains a lot indeed. My bad. I was just clicking away and forgot it was for movies only.