Browse Source

Changed Freebox discover method to work with VPN

master
djib 1 year ago
parent
commit
c9eb733014
  1. 6
      FreeboxMoviePlanner.py

6
FreeboxMoviePlanner.py

@ -147,7 +147,7 @@ class FreeboxMoviePlanner:
self.excluded_directory = excluded_directory
logging.info('Opening Freebox session')
self.freebox = Fbx(nomdns=True)
self.freebox = Fbx()
self.freebox.mksession(
app_id='FreeboxMoviePlanner',
token=self.config['freebox-session-token']
@ -279,10 +279,10 @@ class FreeboxMoviePlanner:
def excludeLocalMovies(self, directory):
(_, _, filenames) = next(os.walk(directory))
logging.warning('Dropping movies already recorded: {}'.format(
[ m for m in self.movies if m.title+'.m2ts' in filenames ]
[m for m in self.movies if m.title+'.m2ts' in filenames]
))
self.movies = [
m for m in self.movies if not m.title+'.m2ts' in filenames
m for m in self.movies if m.title+'.m2ts' not in filenames
]
def excludeNotSelected(self):

Loading…
Cancel
Save