Kodi Community Forum
Scraping "and" "&" and "%26" handling? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: Scraping "and" "&" and "%26" handling? (/showthread.php?tid=67569)



Scraping "and" "&" and "%26" handling? - outleradam - 2010-01-16

Reference: http://forum.xbmc.org/showthread.php?tid=65644&page=2 post #15

An issue has been identified with scraping of TheTvDb.com on Law & Order: Speical Victims Unit. This problem is with "&". For proper storage on most file systems, this should be translated into "and".

Suggested workaround: on failed scrape translate "and" into "%26"

Considerations: none as of yet


- jmarshall - 2010-01-17

It's not clear from the edited post that that is the issue at all.


- outleradam - 2010-01-17

Actually the charactor in question is ":"

Here's what I get when I try on fat32
"mkdir: cannot create directory `/home/mythtv/NAS/Video/shows/Law & Order: Special Victims Unit': Bad file descriptor"

It works fine on my local file system, but not on my NAS
"FILE NAME EXISTS. FILE WILL BE KNOWN AS: Law & Order: Special Victims Unit.S11E12 (Shadow)-1
CREATING LINK IN LINK MODE"

is there a work-around?


- jmarshall - 2010-01-17

If you attempt to create such a folder using XBMC on win32, it should already handle it. Similarly, if you attempt to create a folder with that name from XBMC running on linux on a smb share, then I should think smb would take care of it for you (i.e. it'll fail)

What's the problem exactly?

Cheers,
Jonathan


- outleradam - 2010-01-17

I guess there's no problem. I'm working it on my end. It looks like thetvdb website does not handle the lack of special charactors, but their API does. So, there should be no issue with removing charactors that the file system/os cannot handle ie "! ` < > | \ / : ' " and "

I was under the assumption that the website search was the same as the search API.