Code Monkey home page Code Monkey logo

plugin.video.giraffe.seasonvar's Issues

UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 0: ordinal not in range(128)

Поиск, набранный Cyrillic (ASCII) в ОС Ubuntu 14.04.5 LTS, Android 4.4.2, Windows 7 завершается ошибкой : 'ascii' codec can't decode byte 0xd1 in position 0: ordinal not in range(128)'
Как решение установить кодировку по умолчанию UTF-8.
http://wiki.python.su/Документации/BeautifulSoup
plugin.video.giraffe.seasonvar v.1.2.0 /resources/site-packages/seasonvar/search.py
from urllib import quote
except ImportError: # for python 3.x
from urllib.parse import quote

+import sys
+reload(sys)
+sys.setdefaultencoding("UTF-8")

Searching not working

21:59:50 T:140692290516736 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode characters in position 7-10: ordinal not in range(128)
Traceback (most recent call last):
File "/home/k/.kodi/addons/plugin.video.giraffe.seasonvar-0.0.1/run_plugin_video.py", line 16, in
main()
File "/home/k/.kodi/addons/plugin.video.giraffe.seasonvar-0.0.1/resources/site-packages/addon/plugin_video.py", line 210, in main
}action
File "/home/k/.kodi/addons/plugin.video.giraffe.seasonvar-0.0.1/resources/site-packages/addon/plugin_video.py", line 185, in screen_search
'url': item['url']}),
File "/home/k/.kodi/addons/plugin.video.giraffe.seasonvar-0.0.1/resources/site-packages/addon/common.py", line 61, in make_url
return '{0}?{1}'.format(addon_url, urlencode(params))
File "/usr/lib/python2.7/urllib.py", line 1343, in urlencode
v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-10: ordinal not in range(128)
-->End of Python script error report<--
21:59:50 T:140693972035904 ERROR: GetDirectory - Error getting plugin://plugin.video.giraffe.seasonvar/?action=screen_search
21:59:50 T:140693972035904 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.giraffe.seasonvar/?action=screen_search) faile

Search doesn't work

System: OpenELEC/Kodi/Raspberry PI

00:01:36 440734.281250 T:1684898880 NOTICE: -->Python Interpreter Initialized<--
00:01:37 440735.281250 T:1684898880 NOTICE: {'action': 'screen_search'}
00:01:41 440738.812500 T:1684898880 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: init() takes at most 3 arguments (4 given)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.giraffe.seasonvar/run_plugin_video.py", line 16, in
main()
File "/storage/.kodi/addons/plugin.video.giraffe.seasonvar/resources/site-packages/addon/plugin_video.py", line 205, in main
}action
File "/storage/.kodi/addons/plugin.video.giraffe.seasonvar/resources/site-packages/addon/plugin_video.py", line 181, in screen_search
s = Show(item['url'], None, None)
TypeError: init() takes at most 3 arguments (4 given)
-->End of Python script error report<--

Описание сериала в списках

Сейчас при листании по списку показывается только картинка. Хотелось бы еще пару вещей под картинкой:

  1. Рейтинг кинопоиска и imdb. Иначе трудно выбирать в списке чего бы посмотреть нового.
  2. Если возможно, краткое описание.

что-то сломалось

16:42:06 T:139830923311424  NOTICE: DVDPlayer: Opening: http://data11-cdn.datalock.ru/fi3lm/3a5b5ac97add06e39bbcbdfb6c381844//7f_Son.of.Zorn.s01e01.WEBDL.720p.NewStudio.TV.a1.17.09.16.mp4
16:42:06 T:139830923311424 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:42:06 T:139830070519552  NOTICE: Creating InputStream
16:42:07 T:139830070519552   ERROR: CCurlFile::Open failed with code 404 for http://data11-cdn.datalock.ru/fi3lm/3a5b5ac97add06e39bbcbdfb6c381844//7f_Son.of.Zorn.s01e01.WEBDL.720p.NewStudio.TV.a1.17.09.16.mp4
16:42:07 T:139830070519552   ERROR: Open - failed to open source <http://data11-cdn.datalock.ru/fi3lm/3a5b5ac97add06e39bbcbdfb6c381844//7f_Son.of.Zorn.s01e01.WEBDL.720p.NewStudio.TV.a1.17.09.16.mp4>
16:42:07 T:139830070519552   ERROR: CDVDPlayer::OpenInputStream - error opening [http://data11-cdn.datalock.ru/fi3lm/3a5b5ac97add06e39bbcbdfb6c381844//7f_Son.of.Zorn.s01e01.WEBDL.720p.NewStudio.TV.a1.17.09.16.mp4]
16:42:07 T:139830070519552  NOTICE: CDVDPlayer::OnExit()
16:42:07 T:139830923311424   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.giraffe.seasonvar/?action=play&url=http%3A%2F%2Fdata11-cdn.datalock.ru%2Ffi3lm%2F3a5b5ac97add06e39bbcbdfb6c381844%2F%2F7f_Son.of.Zorn.s01e01.WEBDL.720p.NewStudio.TV.a1.17.09.16.mp4]

Zip repo

Zip плагина будет для добаваления в сирчер?

Поддержка аккаунта

Планируется ли такая вещь? Очень хочется видеть список "Обновления", и пометку просмотренного в kodi на сайте (чтобы исчезало из "Обновления").
Ведь seasonvar как раз и хорош тем что показывает новые серии любимых сериалов, а не надо рыться и следить за выходом как на других сайтах/плагинах.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.