smitchell6879 / plugin.video.specialfeatures

Inspired by the new bluray features of Kodi 18; This addon will present all of the bonus videos, discs, versions you have of movies in your library.
GNU General Public License v3.0
2 stars 0 forks source link

Database setting does not allow hostname #38

Open voor opened 5 years ago

voor commented 5 years ago

Looks like it's ignoring hostname options and always using localhost.

Logs:

2019-08-03 13:55:07.474 T:3553620704   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'pymysql.err.OperationalError'>
                                            Error Contents: (1045, u"Access denied for user '<REMOVED_DATABASE_USER>'@'<REMOVED_LOCALHOSTNAME>' (using password: YES)")
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.specialfeatures/plugin.py", line 350, in <module>
                                                plugRoutine(sys.argv)
                                              File "/home/osmc/.kodi/addons/plugin.video.specialfeatures/plugin.py", line 34, in __init__
                                                self.router(args[2][1:])
                                              File "/home/osmc/.kodi/addons/plugin.video.specialfeatures/plugin.py", line 41, in router
                                                vw.cATEgory(self.params['directory'])
                                              File "/home/osmc/.kodi/addons/plugin.video.specialfeatures/plugin.py", line 159, in cATEgory
                                                self.folder = self.DbEE.initDb(category)
                                              File "/home/osmc/.kodi/addons/plugin.video.specialfeatures/lib/iteration.py", line 233, in initDb
                                                self.sql.setControl()
                                              File "/home/osmc/.kodi/addons/plugin.video.specialfeatures/lib/querylib.py", line 85, in setControl
                                                self.mySql()
                                              File "/home/osmc/.kodi/addons/plugin.video.specialfeatures/lib/querylib.py", line 56, in mySql
                                                self.conI = connect(host=ipadd, port=ipport, user=user, password=pword, charset=charSet, cursorclass=cuType)
                                              File "/home/osmc/.kodi/addons/script.module.pymysql/lib/pymysql/__init__.py", line 90, in Connect
                                                return Connection(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.pymysql/lib/pymysql/connections.py", line 699, in __init__
                                                self.connect()
                                              File "/home/osmc/.kodi/addons/script.module.pymysql/lib/pymysql/connections.py", line 936, in connect
                                                self._request_authentication()
                                              File "/home/osmc/.kodi/addons/script.module.pymysql/lib/pymysql/connections.py", line 1156, in _request_authentication
                                                auth_packet = self._read_packet()
                                              File "/home/osmc/.kodi/addons/script.module.pymysql/lib/pymysql/connections.py", line 1018, in _read_packet
                                                packet.check_error()
                                              File "/home/osmc/.kodi/addons/script.module.pymysql/lib/pymysql/connections.py", line 384, in check_error
                                                err.raise_mysql_exception(self._data)
                                              File "/home/osmc/.kodi/addons/script.module.pymysql/lib/pymysql/err.py", line 107, in raise_mysql_exception
                                                raise errorclass(errno, errval)
                                            OperationalError: (1045, u"Access denied for user '<REMOVED_DATABASE_USER>'@'<REMOVED_LOCALHOSTNAME>' (using password: YES)")
                                            -->End of Python script error report<--

/home/osmc/.kodi/userdata/addon_data/plugin.video.specialfeatures/settings.xml:

<settings version="2">
    <setting id="dbName" default="true">specialfeatures</setting>
    <setting id="excludetypes" default="true">\.(jpg|png|idx|srt|sfnfo|nfo|sub|db|txt|gif|xml)$</setting>
    <setting id="folder" default="true">Extras</setting>
    <setting id="moviedir">true</setting>
    <setting id="mysql">true</setting>
    <setting id="playall">true</setting>
    <setting id="sfnfo">true</setting>
    <setting id="showalldir">true</setting>
    <setting id="showcon">true</setting>
    <setting id="sqlip"><REMOVED_DB_HOSTNAME></setting>
    <setting id="sqlpass"><REMOVED_DATABASE_PASS></setting>
    <setting id="sqlport">3306</setting>
    <setting id="sqluser"><REMOVED_DATABASE_USER></setting>
    <setting id="tvshowdir">true</setting>
</settings>

I would expect it to be looking at REMOVED_DB_HOSTNAME and not REMOVED_LOCALHOSTNAME