Hi,
To reproduce the urllib behavior under linux you only need to:
- Uncomment line 612 in videomonkey.py
- Comment line 613 in videomonkey.py
- Uncomment line 653 in videomonkey.py
- Comment line 654 in videomonkey.py
- Open a video site (e.g. Youtube) and browse to a page that contains a video which title includes non ascii chars (e.g. using the 'next page' icon)
The next error occurs:
Code:
17:43:06 T:2908744592 M: 62230528 NOTICE: Traceback (most recent call last):
17:43:06 T:2908744592 M: 62230528 NOTICE: File "/home/sfaxman/.xbmc/plugins/video/VideoMonkey/videomonkey.py", line 1637, in run
17:43:06 T:2908744592 M: 62230528 NOTICE: if self.parseView(currentView) == 0:
17:43:06 T:2908744592 M: 62230528 NOTICE: File "/home/sfaxman/.xbmc/plugins/video/VideoMonkey/videomonkey.py", line 1514, in parseView
17:43:06 T:2908744592 M: 62230528 NOTICE: self.addListItem(m_title, self.currentlist.codeUrl(m, 'videomonkey'), m_icon, len(self.currentlist.items), m)
17:43:06 T:2908744592 M: 62230528 NOTICE: File "/home/sfaxman/.xbmc/plugins/video/VideoMonkey/videomonkey.py", line 612, in codeUrl
17:43:06 T:2908744592 M: 62230528 NOTICE: info_value = urllib.quote(item.infos_values[info_idx])
17:43:06 T:2908744592 M: 62230528 NOTICE: File "../Python/Lib/urllib.py", line 1117, in quote
17:43:06 T:2908744592 M: 62230528 NOTICE: res = map(safe_map.__getitem__, s)
17:43:06 T:2908744592 M: 62230528 NOTICE: KeyError: u'\u660e'
Thanks for the quick implementation
sfaxman...