2016-02-10, 16:30
(2016-02-06, 01:41)mrjwm2 Wrote: This is now become interesting to me, lol.
I have tested with the addition of an advancedsettings.xml in the userdata folder. I can get the scraper to return the complete file names. The weird thing is that the 2 Big Bang episodes work fine with ONLY the addition of the advancedsettings.xml. The Handball show requires a change in the file name, albeit a simple change. You will need to shorten the year to 2 digits (i.e. 2013 will be 13).
By default Kodi cleans and strips certain text found in a file name when the scraper iniates. see here: cleanstrings
It seems like Kodi's clean action after a regex match is different when it matches year ( 2 digits - 2- digits - 4 digits /or/ 4 digits - 2 digits - 2digits) versus an episode match (multi regex are used to match episode)
Additionally, Kodi has a failsafe in place to not clean/eliminate the complete file name, which would be not so nice.
I have looked at the code and could make a change given time, but it would be best to edit your file name (shorten the year) and add the advancedsettings.xml
The advancedsettings.xml is really blank, as it matches nothing. But it works. I tried it blank (below) and with (.+) or (....) all the three work with the filename year change.... weird!
I think this is an okay solution to your problem. I can see why you want to see the teams of an event, as well as the date.
Copy and paste below to notepad, save as advancedsettings.xml and drop it in the userdata folder. Rename the year in your files. Restart Kodi, remove the source of the movies you want to change (refresh did not work for me), close and reopen Kodi, stupid scrape again and enjoy. (You only need to rename files that you would like to see text AFTER the date)
PHP Code:<?xml version="1.0" encoding="utf-8"?>
<advancedsettings>
<video>
<cleanstrings>
<RegExp>
<RegExp>
<expression></expression>
</RegExp>
</RegExp>
</cleanstrings>
</video>
</advancedsettings>
I would have thought that using cleanstrings in the advancedsettings.xml would override any cleaning function built into Kodi... guess not. Hopefully someone more knowledgeable in this will reply.
hi, i searhed and dig up how to have year in file name. i found that kodi first strips date from file names so before cleanstring i just needed to put cleandatetime line. so it looks like this now
PHP Code:
<advancedsettings>
<video>
<cleandatetime>(.*)</cleandatetime>
<cleanstrings>
<RegExp></RegExp>
</cleanstrings>
</video>
</advancedsettings>
the only thing that i cannot get are dots between words in file and extension in the end but i can live with it
thx again for all your help