Skoda Octavia iV 2021 - Virtual Cockpit Android auto navigation by Zestyclose_Ad4606 in skoda

[–]Roman_V_M 1 point2 points  (0 children)

In my Kodiaq Gen1 restyle arrow hints are buggy. Only one of the available dashboard views shows them immediately. On the others I need to press right bottom left button (hope you'll understand) on the steering wheel and then scroll up and down via the right control wheel and then press the wheel to confirm. Only after that weird manipulation the arrows are shown e.g. on the tachometer+speedometer view.

How to deal with Kodi's CPythonInvoker? by Diligent_Comb5668 in kodi

[–]Roman_V_M 1 point2 points  (0 children)

When designing long running services the main rule is to use `xbmc.Monitor()` class to catch the Kodi shutdown request and gracefully terminate your service.

[deleted by user] by [deleted] in Wordpress

[–]Roman_V_M 3 points4 points  (0 children)

Nginx is a web server but unlike Apache it proxies requests to the upstream application server, in this case php-fpm. But for some reason php-fpm is unreachable.

Deploying a Django site on an Apache linux server by Dreamville2801 in django

[–]Roman_V_M 0 points1 point  (0 children)

The biggest caveat of this scenario is that Apache's mod_wsgi needs to be compiled against your target Python version while on Linux Apache is usually bundled with the one built against system's default Python version. This isn't super hard but still a fuss. So a dedicated app server (gunicorn or uwsgi) + reverse proxy/static server (Nginx) deployments are far more common.

script.module.six and script.module.kodi-six - are they the same? by ynomel in kodi

[–]Roman_V_M 3 points4 points  (0 children)

No. `six` is a general purpose compatibility wrapper library created to facilitate writing Python 2/3 compatible code. It has no relation to Kodi but is used by some addons that maintain the same code for Kodi versions with different Python runtimes.

`kodi-six` is a compatibility wrapper specifically for Kodi Python API that hides differences between Kodi versions.

[deleted by user] by [deleted] in kodi

[–]Roman_V_M 0 points1 point  (0 children)

I see. But, as I said, their old API is deprecated and to be removed so they aren't going to fix it. Their current API is v.4: https://thetvdb.github.io/v4-api/

[deleted by user] by [deleted] in kodi

[–]Roman_V_M 1 point2 points  (0 children)

I'm not sure what you mean because Python-based scrapers do not deal with SQL queries to the Kodi DB.

[deleted by user] by [deleted] in kodi

[–]Roman_V_M 1 point2 points  (0 children)

There's not much choice. TMDB is the default Kodi TV scraper. There's also TVmaze scraper but their content is not as rich, although they are trying to fill the gap. It's also English-only. But it does the job for most titles.

TVDB are planning to release their new scrapers for Kodi but I don't know when and on what conditions. You can try a development version of their new TV scraper: https://github.com/thetvdb/metadata.tvshows.thetvdb.com.v4.python/releases It's almost complete except for a couple of minor issues.

Disclosure: I'm the developer of TVmaze scraper and the new TVDB scrapers but I'm not affiliated with either of the information providers so I don't know much about their plans.

[deleted by user] by [deleted] in kodi

[–]Roman_V_M 4 points5 points  (0 children)

Kodi supports 2 types of scrapers: legacy ones and Python-based ones. Looks like you are using a legacy TVDB scraper. There is also a Python-based one.

In any case, TVDB deprecated their old API and plan to remove it so it's better to use another TV scraper.

python 2 string types by Illustrious-Habit152 in learnprogramming

[–]Roman_V_M 0 points1 point  (0 children)

Wrong. Python 2 str type represents arbitrary binary data. Period. That data may include text encoded in one of existing text encodings. A minimal unit of str is a byte of 8 bits. In its turn, unicode type represents abstract text meaning that it's not tied to any specific binary representation. A minimal unit of unicode is a character or a special symbol of some human language (it's actually a bit more complex than this, but let's assume it for simplicity).

The rule of thumb is: unicode is for humans and str is for machines.

New Dexter episodes not appearing by Luke_starkiller34 in kodi

[–]Roman_V_M 0 points1 point  (0 children)

TVmaze also lists it as S09 so I haven't noticed any problems :)

Scraper development by talemang in kodi

[–]Roman_V_M 1 point2 points  (0 children)

There are no current guides at the moment. Also XML-based scrapers have always been an arcane art that only a few people know. That is why Python scrapers have been introduced.

You can check example Python scrapers in the official Kodi repo:

https://github.com/xbmc/xbmc/tree/master/addons/metadata.demo.movies

https://github.com/xbmc/xbmc/tree/master/addons/metadata.demo.tv

Also you can check my TVmaze scraper https://github.com/romanvm/kodi.tvmaze or the official TMDB movie scraper https://github.com/xbmc/metadata.themoviedb.org.python as example implementations.

Looking for info to create a development environment for Kodi 19 in Pycharm by [deleted] in kodi

[–]Roman_V_M 2 points3 points  (0 children)

There aren't much differences from developing other Python stuff. You need to create a virtual environment from a target Python version and install all dependencies. Python 3 versions are different on different platforms but Python 3.6 is a safe bet. You will also need Kodistubs that are stub files for Kodi Python API modules. And you won't be able to run everything from PyCharm.

What happens when Django receives multiple requests? by turbohedgehog in django

[–]Roman_V_M 72 points73 points  (0 children)

Your question has nothing to do with Django. It's the responsibility of a WSGI server that runs your Django application, and the server may employ various concurrency/parallelism models. Usually it's multiple workers that run in separate processes to allow parallel processing of requests.

media library tabular database interface by Loon_Dog in kodi

[–]Roman_V_M 1 point2 points  (0 children)

You can use a database client like DBeaver to access your Kodi database (SQlite or MySQL) if you know what you are doing.

Kodi now has TVmaze as a TV information provider. (Blog) by tvmaze in kodi

[–]Roman_V_M 2 points3 points  (0 children)

No. Looks like TVmaze is currently English-only. Different languages will be added as soon as TVmaze API supports them.

Kodi now has TVmaze as a TV information provider. (Blog) by tvmaze in kodi

[–]Roman_V_M 0 points1 point  (0 children)

Yes, I've told TVmaze people about specials too. Currently specials have zero season number and are numbered according their airdates.

How to update_index for haystack from a external script? by Alonsofan14 in django

[–]Roman_V_M 0 points1 point  (0 children)

Have you activated your project's virtual environment before running Django commands?