Export your movies to html (script)

Media Browser Tutorial ONLY (strictly enforced)

Re: Export your movies to html (script)

Postby tikuf » Sat Aug 15, 2009 10:30 am

ya it wont work with Video_Ts file structures will have a peak at a work around
tikuf
 
Posts: 640
Joined: Fri Mar 13, 2009 5:44 pm
Location: Mansfield Victoria Australia

Re: Export your movies to html (script)

Postby lappen » Sat Aug 15, 2009 11:10 am

Is it possible without to much hassle to fix folderimages automaticly when folder has a different name then localtitle (alot of folder images to fix manually so i'm not really up to the task. And If possible i rather keep my folders renamed different then localtitle).

Also how is the watched state stored? Would be nice to have a cross/tick on the folder images for the movies i've seen but might be to much work.

Oh and on more thing, does series work?
Hope i'm not to demanding, anyways great work. :)
lappen
 
Posts: 157
Joined: Thu Dec 25, 2008 6:58 am

Re: Export your movies to html (script)

Postby tylor » Sat Aug 15, 2009 11:38 am

tikuf wrote:ya it wont work with Video_Ts file structures will have a peak at a work around


Excellent, thanks Tikuf

:D
tylor
 
Posts: 990
Joined: Sun Feb 01, 2009 11:39 am

Re: Export your movies to html (script)

Postby tikuf » Sat Aug 15, 2009 11:53 am

Because we are dealing with 3 different sources for data
folder name
file name
local title
it is important that they are all the same
there is and easy way to change them metabrowser will do it for you just enable in the option section for movies
enable folder renaming for movies
enable file renaming for movies
folder patern should be %lt
file pattern should be %lt%ext

or you could hand edit the html file with and editor like frontpage or something similar and just point it at the right image

the goal here was to do most of the work if the 3 data sourses are the same it will do all the work

having the correct names for files and folder makes it easier for media browser to pick the correct movies (if you are using the meta data stuff in media browser)

watch status is stored in the media browser cache
C:\ProgramData\MediaBrowser\Cache\playstate
which would mean dealing with 4 different data sources
aside from the fact that there is no way for me to match for example
0a1b29af800b2353bb248cc6ecadd1b9
with a movie name from a dos batch file

series doesnt work right now but there is a bit of code for it and I may look at implementing it later
tikuf
 
Posts: 640
Joined: Fri Mar 13, 2009 5:44 pm
Location: Mansfield Victoria Australia

Re: Export your movies to html (script)

Postby lappen » Sat Aug 15, 2009 4:13 pm

Allright thanks :)
lappen
 
Posts: 157
Joined: Thu Dec 25, 2008 6:58 am

Re: Export your movies to html (script)

Postby jcalton88 » Sun Aug 16, 2009 3:19 pm

Do NOT run this from the root directory of a HDD. And I'm not talking just the Windows installation drive(C:). Don't run it from the root of any drive!!!

I made this mistake, not thinking. Windows automatically creates a recycle bin in the root of every HDD, and if you happen to have ownership(by default windows does, you don't) it will create a loop for the batch and it will process itself....over and over...and over....and over, until you stop it.

I ran this and got up to use the bathroom, came back, and the screen looked like something from The Matrix, just a bunch of letters flying up the screen that you couldn't read. I stopped it, and behold, I now have a folder that goes back and forth from "MovieHtmlGenerator_v1.00b\Images\MovieHtmlGenerator_v1.00b\images\" and it keeps going and going.

Wonderful thing is, the path is so long, I can't delete it, :-). Windows will not let me delete it because of how long the path is at the end point, my only option is to rename everything with one letter names until it is short enough I can delete it. Atleast the only option I can see.

Just thought I'd give everyone a warning before this little error happens to anyone else.
jcalton88
 
Posts: 466
Joined: Thu Jul 02, 2009 7:33 am

Re: Export your movies to html (script)

Postby tikuf » Sun Aug 16, 2009 5:40 pm

sorry mate didnt even think of this
change the line
Robocopy %sp%" "%wd%images" /E /IF %folderimagename%
to
Robocopy %sp%" "%wd%images" /E /IF %folderimagename% /xd "%wd%images"

so it doent happen again
I think thats the right command anyone game to test it

not sure of how to help with the dirs tho
but the problem was not the recycle bin it was the fact that robocopy scanned the images dir and copied the images from it creating the loop
tikuf
 
Posts: 640
Joined: Fri Mar 13, 2009 5:44 pm
Location: Mansfield Victoria Australia

Re: Export your movies to html (script)

Postby ezzab » Mon Aug 17, 2009 12:16 pm

I've got a problem! No matter what i do, only a handful of images make it into the \website\img\ folder.

The batch creates images\%movie_titles% folders for every movie in the SeachPath.
In each of these movie folders is a folderbkp.jpg

What doesnt happen is most of the images dont get resized, renamed and moved to \website\img\.

The output of the batch reports everything is fine up to the "Processing..." screen where it says the following:

Code: Select all
   Processing...

processing Images
The system cannot find the path specified.
   Note: This may take some time depending on the number of the movies you have.

Search Path: "D:\Movies [High Def]\"


Whats really confused me is that 5 out of the 130 images are processed. So i'm guessing it's a problem with PhtoResize400? Any ideas?
ezzab
 
Posts: 4
Joined: Mon Aug 17, 2009 4:12 am

Re: Export your movies to html (script)

Postby tikuf » Mon Aug 17, 2009 1:06 pm

i am working on a fix for a few things in this script will up it as soon as its done
bit busy with family for awhile
tikuf
 
Posts: 640
Joined: Fri Mar 13, 2009 5:44 pm
Location: Mansfield Victoria Australia

Re: Export your movies to html (script)

Postby jcalton88 » Mon Aug 17, 2009 1:12 pm

Not a problem Tikuf, I don't really mind as in the end only one of the image folders it created had anything in them so its just a really long string of folders that has a grand total size of 20 Mbs. I haven't even messed with it, it'll probably stay until I get tired of seeing it.

I'm just glad to have been able to point this out so others don't have the same problem, I guess thats what beta testing is for, ;)

I'm also having the same problem as Ezzab, just none of mine got processed. Don't have much time right now to play with it, I might be able to get it to work. Will report back tomorrow when I have more time.
jcalton88
 
Posts: 466
Joined: Thu Jul 02, 2009 7:33 am

PreviousNext

Return to Tutorials



Who is online

Users browsing this forum: No registered users and 1 guest

cron