Different Movie Folder Organization
#1
Hello.

I am new to XBMC and it looks great, so I am trying to adapt it to my needs.

I have a problem with the movie folders/files naming conventions, which is clearly documented here:

http://wiki.xbmc.org/index.php?title=Vid...les/Movies

Unfortunately, I have a large collection already in place and wish not to change the collection. I would rather like to twist XBMC to understand my naming conventions, which are not all that dissimilar from what is requested. For instance, instead of having a movie in

/movie/Balada triste de trompeta (2010)/BALADA_TRISTE.ISO

as it would be fine, I have it in

/movie/Balada triste de trompeta (by Álex de la Iglesia, 2010; 107'; 6.5)/BALADA_TRISTE.ISO

I looked around in the Wiki and in the forums for ways to twist the regexp (particularly, I noted

http://wiki.xbmc.org/index.php?title=Adv...ttings.xml

but I fail to comprehend what is what exactly, and a couple of trials did not result in anything at all). All I read in the forums was concerning TV Series.

Can someone help? I understand well regexps, but I do not understand what to modify exactly. Is it at the level of <cleandatetime> (which I have modified to remove the unwanted information from the parentheses in $2, but to no avail)? Or is it at the level of the scraping add-on?

Thanks in advance for any help.

p.
Reply
#2
Ok, I made slow progress.

I understood that what I need to change is in

...\AppData\Roaming\XBMC\addons\metadata.themoviedb.org\tmdb.xml

and is this part:

Code:
    <CreateSearchUrl dest="3">
        <RegExp input="$$1" output="&lt;url&gt;http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;query=\1&amp;amp;year=$$4&amp;amp;language=$INFO[language]&lt;/url&gt;" dest="3">
            <RegExp input="$$2" output="\1" dest="4">
                <expression clear="yes">(.+)</expression>
            </RegExp>
            <expression noclean="1" />
        </RegExp>
    </CreateSearchUrl>

I managed to parse correctly the year (in $$4) with the following small modification (changed the input of the second RegExp to $$1 and changed the regexp itself):

Code:
    <CreateSearchUrl dest="3">
        <RegExp input="$$1" output="&lt;url&gt;http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;amp;query=\1&amp;amp;year=$$4&amp;amp;language=$INFO[language]&lt;/url&gt;" dest="3">
            <RegExp input="$$1" output="\1" dest="4">
                <expression clear="yes">%20(19[0-9][0-9]|20[0-1][0-9])%3b</expression>
            </RegExp>
            <expression noclean="1" />
        </RegExp>
    </CreateSearchUrl>

Yet, now I am stuck. I see that $$1 is the input of the first RegExp and \1 is the matching (complete, perhaps because the expression is empty?) but I do not see where I can write the (fairly trivial) regexp which removes completely the parentheses at the end of the $$1. I tried to replace

Code:
            <expression noclean="1" />

with the (equivalent?)

Code:
            <expression noclean="1"></expression>

but then, if I put just about anything in there, things break in ways that I do not understand.

Anyone has a clue?

Thanks!

p.
Reply
#3
For lack of answers in this forum, I reposted the content in http://forum.xbmc.org/showthread.php?tid=153778

Please answer there, if you feel like.

Thanks!

p.
Reply

Logout Mark Read Team Forum Stats Members Help
Different Movie Folder Organization0