Kodi Community Forum
tvshow scraper problem - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Information Providers (scrapers) (https://forum.kodi.tv/forumdisplay.php?fid=147)
+----- Forum: TV Show Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=305)
+----- Thread: tvshow scraper problem (/showthread.php?tid=312844)



tvshow scraper problem - swedgin - 2017-04-21

Hello

To circumvent the problem that the default scraper doesn't support scene and p2p file naming convention, -I do not want to change filenames, nor change their directory. I've added my own regexp that I found on the internet. This is my advancedsettings.xml file:

Code:
<advancedsettings>
    <loglevel>2</loglevel>
    <tvshowmatching action="prepend">
        <regexp>(.*?)\.S?(\d{1,2})E?(\d{2})\.(.*)</regexp>
    </tvshowmatching>
</advancedsettings>

The logfile shows it's loading the file which is good. I rescan my files, and it can seperate the filenames:
American.Dad.S13E02.HDTV.x264-FLEET.mkv -> American Dad S13E02

However, it calls the api with the whole string, instead of just the shows name.
http://thetvdb.com/api/GetSeries.php?seriesname=American%20Dad%20S13E04&language=en
when it should be:
http://thetvdb.com/api/GetSeries.php?seriesname=American%20Dad&language=en
and then an additional call to get season and episode info.

How can I fix this? I guess it's something with parsing the season number and episode number to different strings, for other api calls. I don't know how kodi works on that.
Any help is appreciated. Thanks

screenshot of the log:
http://imgur.com/a/iIccO