Export your movies to html (script)

Media Browser Tutorial ONLY (strictly enforced)

Re: Export your movies to html (script)

Postby dolled » Wed Sep 09, 2009 11:47 am

tikuf wrote:Dolled
problem is that in the batch file a variable is defined by !variable! so it is seeing you folders as a variable (half a variable) there is nothing i can do about it unfortunatly the only option is to change the folder/filename so it doesnt have a ! in it


OK,I have allready done that (as a quick fix - but it seems it has to be the final fix...)

Anyway: It's a great script.

Thanks,
Dolfren
dolled
 
Posts: 12
Joined: Tue Sep 01, 2009 8:28 pm

Re: Export your movies to html (script)

Postby dolled » Fri Sep 11, 2009 9:32 am

Hi

I have just added tvseries and some of the series also have Æ Ø Å in the names. I cannot find where to add this "conversion". It does not seem to look the same as in movies...

Thanks,

Dolfren
dolled
 
Posts: 12
Joined: Tue Sep 01, 2009 8:28 pm

Re: Export your movies to html (script)

Postby tikuf » Fri Sep 11, 2009 12:52 pm

no it is totally different because of the storage of meta data etc
if you add your exceptions to
set httitle=!epix: =_!

eg
set httitle=!epix: =_!& set httitle=!httitle:Æ=ae!& set httitle=!httitle:**=##!
where ** is the characters you want to remove and ## is the replacement
should do it
tikuf
 
Posts: 640
Joined: Fri Mar 13, 2009 5:44 pm
Location: Mansfield Victoria Australia

Re: Export your movies to html (script)

Postby dolled » Fri Sep 11, 2009 2:20 pm

tikuf wrote:no it is totally different because of the storage of meta data etc
if you add your exceptions to
set httitle=!epix: =_!

eg
set httitle=!epix: =_!& set httitle=!httitle:Æ=ae!& set httitle=!httitle:**=##!
where ** is the characters you want to remove and ## is the replacement
should do it


Hi & Thanks

This works for the folder name, but as in the movie file there is two places that needs to be changed, so that the picture "aint broken" (in the movie file we needed to change:

set LocalTitle=%%f& set LocalTitle=!LocalTitle:^<LocalTitle^>=!
and
set SortTitle=%%f& set SortTitle=!SortTitle:^<SortTitle^>=!

and I am not that familiar with this, so I don't dare to just change it....

Could you please advise?

Thanks,
Dolfren
dolled
 
Posts: 12
Joined: Tue Sep 01, 2009 8:28 pm

Re: Export your movies to html (script)

Postby tikuf » Fri Sep 11, 2009 7:48 pm

set SortTitle=%%f& set SortTitle=!SortTitle:^<SortTitle^>=!
is what all the file names are generated from
tikuf
 
Posts: 640
Joined: Fri Mar 13, 2009 5:44 pm
Location: Mansfield Victoria Australia

Re: Export your movies to html (script)

Postby dolled » Sat Sep 12, 2009 10:13 am

tikuf wrote:set SortTitle=%%f& set SortTitle=!SortTitle:^<SortTitle^>=!
is what all the file names are generated from


But if I set only SortTitle, the images are broken. And I figured out that if I changed both SortTitle and LocalTitle, they are fine.

The same happens in series, if I only change it the httitle the name of the folder is ok, but the epsiode names aren't correct and the pictures are broken...

,Dolfren
dolled
 
Posts: 12
Joined: Tue Sep 01, 2009 8:28 pm

Re: Export your movies to html (script)

Postby tikuf » Sat Sep 12, 2009 11:13 am

dolfren
can you tell which images are broken folder images or ep images
can you tell me if the images are in the website directory
or is it just the generated html that is incorrect

can you show me the html that is generated (ie have you uploaded it anywhere)

removing the characters from tv series is a pita due to the fact the data is read from many different xml files unlike movies where it is only read from one

you will need to escape the characters from the following variables
seriesjustname
httitle
and that should do it
to do so you will need to find the lines
set seriesjustname add your escaped char to the end of the line
and set httitle add your escaped char to the end of the line

i think that will fix you problems

and you are correct about the localtitle and the sorttitle for movies sorry forgot to mention the other
tikuf
 
Posts: 640
Joined: Fri Mar 13, 2009 5:44 pm
Location: Mansfield Victoria Australia

Re: Export your movies to html (script)

Postby dolled » Sat Sep 12, 2009 1:54 pm

tikuf wrote:dolfren
can you tell which images are broken folder images or ep images
can you tell me if the images are in the website directory
or is it just the generated html that is incorrect

can you show me the html that is generated (ie have you uploaded it anywhere)

removing the characters from tv series is a pita due to the fact the data is read from many different xml files unlike movies where it is only read from one

you will need to escape the characters from the following variables
seriesjustname
httitle
and that should do it
to do so you will need to find the lines
set seriesjustname add your escaped char to the end of the line
and set httitle add your escaped char to the end of the line

i think that will fix you problems

and you are correct about the localtitle and the sorttitle for movies sorry forgot to mention the other


Hi

All images are broken when there is a foldername that contains æ, ø å. I suspect the reason that also the episode name link is broken is because it also contains æ, ø or å. But by adding:
& set seriesjustname=!seriesjustname:›=o!& set

seriesjustname=!seriesjustname:‘=ae!& set seriesjustname=!seriesjustname:†=aa!

seems to fix it. But the epsiode name is not fixed (the name is like: "Dr›mmefangeren episode 1", should have been "Drømmefangeren episode 1")

(if you like the html code I can paste it in here (you would have to have a usr/pwd to log in to my site)

Thanks,
Dolren
dolled
 
Posts: 12
Joined: Tue Sep 01, 2009 8:28 pm

Re: Export your movies to html (script)

Postby tikuf » Sat Sep 12, 2009 7:41 pm

Dolfren
this is a dos batch script dos doesnot understand special char like ø you will have to escape all special chars
lappen has posted on this earlier in the thread about this
alternatively change the xml so it has no special chars in it
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 Sep 26, 2009 12:14 pm

I've discovered an anoying bug

I've set all my pictures in my movie folders as hidden and writeprotected so I don't have to watch 300covers, 300 backdrops etc etc mixed in my pictures when watching slideshows in media center.
Everytime I run the script all folder.jpg is set to visible again so they show up in my slideshow

Is this fixable?, or is it the way windows handles files
lappen
 
Posts: 157
Joined: Thu Dec 25, 2008 6:58 am

PreviousNext

Return to Tutorials



Who is online

Users browsing this forum: No registered users and 1 guest