savrus / uguu

Automatically exported from code.google.com/p/uguu
Other
3 stars 1 forks source link

Can't navigate to folders with leading space in name #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Seems like it's spider.py's mistake

uguu=# select count(*) from paths where path like 'hentai/ Lemon Angel
(ミッドナイトアニメ レモンエンジェル) TV 01-52 (LD 640x480 
WMV9)';
 count
-------
     1
(1 row)

uguu=# select count(*) from paths where path like 'hentai/Lemon Angel (ミッ
ドナイトアニメ レモンエンジェル) TV 01-52 (LD 640x480 WMV9)';
 count
-------
     0
(1 row)

uguu=# select '"' || name || '"' from filenames where name like '%Lemon
Angel (ミッドナイトアニメ レモンエンジェル) TV 01-52 (LD 
640x480 WMV9)';
                                    ?column?
--------------------------------------------------------------------------------
 "Lemon Angel (ミッドナイトアニメ レモンエンジェル) TV 01-52 (LD 640x480 WMV9)"
(1 row)

Original issue reported on code.google.com by radist...@gmail.com on 19 Feb 2010 at 6:42

GoogleCodeExporter commented 9 years ago

Original comment by radist...@gmail.com on 19 Feb 2010 at 6:47

GoogleCodeExporter commented 9 years ago
>Seems like it's spider.py's mistake
Confirmed

>>> str ='1 3    5'
>>> string.split(s=str, maxsplit=2)
['1', '3', '5']
>>> string.split(s=str, sep=' ', maxsplit=2)
['1', '3', '   5']

Please try spider.py with all 'string.split(s=line, maxsplit=?)' changed into
'string.split(s=line, sep=' ', maxsplit=?)'

Original comment by ruslan.savchenko on 19 Feb 2010 at 7:38

GoogleCodeExporter commented 9 years ago

Original comment by ruslan.savchenko on 19 Feb 2010 at 7:39

GoogleCodeExporter commented 9 years ago
> Please try spider.py with all 'string.split(s=line, maxsplit=?)' changed into
> 'string.split(s=line, sep=' ', maxsplit=?)'
Seems like it's working fine.
BTW, why fields are separated with spaces, but not with \t?

Original comment by radist...@gmail.com on 19 Feb 2010 at 11:17

GoogleCodeExporter commented 9 years ago
why would you need \t?

Original comment by ruslan.savchenko on 19 Feb 2010 at 7:11

GoogleCodeExporter commented 9 years ago
\t is more common for dividing fields in text file and uncommon in file names

Original comment by radist...@gmail.com on 19 Feb 2010 at 7:15

GoogleCodeExporter commented 9 years ago
i don't see the point.

Original comment by ruslan.savchenko on 19 Feb 2010 at 7:44

GoogleCodeExporter commented 9 years ago
closed

Original comment by ruslan.savchenko on 19 Feb 2010 at 7:58