add-ons / service.iptv.manager

Integrate TV and radio channels with EPG data from other add-ons in Kodi PVR.
https://github.com/add-ons/service.iptv.manager/wiki
GNU General Public License v3.0
98 stars 28 forks source link

WindowsError: [Error 183] Can't create a file that already exists #15

Closed GianniDPC closed 4 years ago

GianniDPC commented 4 years ago

This seems to happen when restarting Kodi as well as manually Refreshing the channels and guide under Channels -> Refresh channels and guide now.

Error Type: <type 'exceptions.WindowsError'>
Error Contents: [Error 183] Kan geen bestand maken dat al bestaat
Traceback (most recent call last):
  File "C:\Users\Gianni\AppData\Roaming\Kodi\addons\service.iptv.manager\service.py", line 8, in <module>
    service.run()
  File "C:\Users\Gianni\AppData\Roaming\Kodi\addons\service.iptv.manager\resources\lib\service.py", line 56, in run
    BackgroundService().run()
  File "C:\Users\Gianni\AppData\Roaming\Kodi\addons\service.iptv.manager\resources\lib\service.py", line 34, in run
    Addon.refresh()
  File "C:\Users\Gianni\AppData\Roaming\Kodi\addons\service.iptv.manager\resources\lib\modules\addon.py", line 83, in refresh
    IptvSimple.write_playlist(channels)
  File "C:\Users\Gianni\AppData\Roaming\Kodi\addons\service.iptv.manager\resources\lib\modules\iptvsimple.py", line 119, in write_playlist
    os.rename(playlist_path + '.tmp', playlist_path)
WindowsError: [Error 183] Kan geen bestand maken dat al bestaat
-->End of Python script error report<--
GianniDPC commented 4 years ago

See #16

dagwieers commented 4 years ago

Fixed by #16