Skip to content

Commit

Permalink
ImportChannels: Do not break the import when a file cannot be fatched
Browse files Browse the repository at this point in the history
Currently in the hanssat settings there is a file that is not available 'userbouquet.stream_solomonseilanden__sb_.radio' it should be but in a bouquet the string is different. Currently it breaks the total import. This change does avoid that so at least all the rest is read.

(cherry picked from commit 9abf89a1ec339271ee5da63fdbfa27a6bbb58f46)
  • Loading branch information
Littlesat authored and teamblue-e2 committed Mar 12, 2024
1 parent f934f39 commit 990e38b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/python/Components/ImportChannels.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def ImportGetFilelist(self, remote=False, *files):
content = self.getUrl("%s/file?file=%s/%s" % (self.url, e2path, quote(_file))).readlines()
except Exception as e:
print("[Import Channels] Exception: %s" % str(e))
self.ImportChannelsDone(False, _("ERROR downloading file %s/%s") % (e2path, _file))
return
continue
else:
with open('%s/%s' % (e2path, _file), 'r') as f:
content = f.readlines()
Expand Down

0 comments on commit 990e38b

Please sign in to comment.