Posts: 501
Joined: Nov 2007
Reputation:
3
I think I noticed an issue with this myself once. Dashes where becomign spaces.
Can you possibly post a log of a scan for me?
Posts: 501
Joined: Nov 2007
Reputation:
3
Well things like dots, colons, ampersands, etc .. I think are taken care of now in the TVDB's new API because things like "Star Trek Voyager" match up fine with "Star Trek: Voyager". I think essentially the GetSeries search ignores those characers.
Ideally the API should just strat ignoring dashes as well, but since Scott recently redid them and dashes don't work, there might have been a reason for it.
I'll TRY to get a moment to dig into the code here and see whats up.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
i have a fix sitting in my tree, but i need to investigate some more before i commit to make sure its the correct one.
if you want to have a look agathorn; its in CIMDB::GetURL()
the whole shenanigans with the regexp shouldnt be applied to tvshows. however it would still be nice to keep the year hint somehow
Posts: 669
Joined: Aug 2006
Reputation:
2
The API on my end should be ignoring all of those characters. Coco discovered that it's not ignoring apostrophes, so I'll be fixing that later. If any other special characters are found that the API isn't handling correctly, please let me know.
The way it works on the API side is this:
- Sphinx indexer looks at the tables/fields I want and stores the fields I want it to store. When it stores them, it can do character/word/phrase translation. It's here that I have it translate those special characters to an empty string.
-When you do a search with the API, I call Sphinx search. It uses the same config, so it'll do the same character/word/phrase translation before searching the index for the series name.
The result is that you should be fine passing special characters along to the API as long as I have them in the Sphinx configuration.
Posts: 71
Joined: Oct 2007
Reputation:
0
been have problems trying to add the x-files to my tv library
have 2 xboxes, one running t3ch build of 6-16-08 and another running svn of 7-18-05 an neither will add the x-files to the library scraping against thetvdb.com
main folder = The X-Files
season folders = The X-Files S1, The X-Files S2, etc
avi files = The X-Files.s01e01.Pilot.avi, etc...
Posts: 482
Joined: Aug 2005
Reputation:
0
I've had the same problem. It's to do with the "-". You can get around it. It won't work if you do a full scan; i.e. you need to look up TV Show information for the X-files only. When it returns the results, and the x-files isn't there, click on the 'Manual' button in the bottom left. I'm pretty sure I got mine working by clearing everything, then putting in just 'x-files' or 'x - files'. Note, with the on screen keyboard, the '-' is really thick, it almost looks like a '='.
Posts: 669
Joined: Aug 2006
Reputation:
2
Use nfo files. There's 2 parts to this problem. First, XBMC removes dashes before sending the search data to the API. Second, our API doesn't handle dashed words that have the dash removed as well as it should. There are lengthy posts on both sites about this. The ideal solution is me tweaking sphinx on my site to handle it properly, but it's extremely complicated so it's not likely to happen anytime soon. I've stated elsewhere that if someone has experience with sphinx, I'd be happy to give them access to ours so they can configure it.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
what about url-encoding the search string?
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
scene naming is irrelevant for tvshows as it gets the show name from the folder, and only the season/episode identifier from the filename. and movies are supposed to be cleaned of known tags to minimize that impact.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
2008-07-22, 23:30
(This post was last modified: 2008-07-22, 23:34 by kraqh3d.)
tags are things like "divx", "ac3", "hdtv", "pdtv", "dvdrip", "internal", "proper", "repack", etc. there may even be group monikers in the list. its been a while since i looked. but additionally, all "-" and "." are replaced with space. (gimme 5 minutes and i'll look at the code to confirm.)
** edit **
update... minus and period are replaced with space. and then the string is url-encoded. i could test with how it works where they are left in place.