2013-01-29, 12:49
Hi!
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 understood that what I need to change is in
...\AppData\Roaming\XBMC\addons\metadata.themoviedb.org\tmdb.xml
and is this part:
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):
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
with the (equivalent?)
but then, if I put just about anything in there, things break in ways that I do not understand.
Has anyone a clue? Is there a place where I can find some more documentation (I do not understand the relation of regexp's inside regexps or in parallel, for instance).
Thanks!
p.
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 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="<url>http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;query=\1&amp;year=$$4&amp;language=$INFO[language]</url>" 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="<url>http://api.themoviedb.org/3/search/movie?api_key=57983e31fb435df4df77afb854740ea9&amp;query=\1&amp;year=$$4&amp;language=$INFO[language]</url>" 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.
Has anyone a clue? Is there a place where I can find some more documentation (I do not understand the relation of regexp's inside regexps or in parallel, for instance).
Thanks!
p.