Advertisement
titooo7

jellyfin gdrive autoscan

Jan 18th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. COMMENTS FOR
  2.  
  3.  
  4. FIRST FILE TO MODIFY:
  5. Line 6 of emby.py needs to be like this to be compatible with jellyfin 10.4.3 (otherwise the post request to scan won't be received correctly by jellyfin):
  6.  
  7. embyApiBaseUrl = config['protocol'] + '://' + config['ip'] + ':' + config['port'] + '/jellyfin/'
  8.  
  9. SECOND FILE TO MODIFY:
  10. config.json has a line to enter the mountPoint but it seems to be ignored. A dirty hack to fix it would be writting the mount point on line 77 of db.py
  11. Change this:
  12. embyChange['Path'] = file.path
  13. with this:
  14. embyChange['Path'] = '/mnt/unionfs/' + file.path
  15.  
  16.  
  17. IMPORTANT BUT NO IDEA HOW TO FIX:
  18. If we enter any date more recent than 2019-10-22T00:00:00 in config.json then the script doesn't read added files. I tried to find the reason adding the following to line 193 of googleDriveService.py:
  19. print (f'change date: {changeDate}')
  20. It prints 2019-10-22 12:37:33.868000+00:00 as change date. I would expect the script to display current date... I guess that's the reason why it doesn't detect any files added to the teamdrive after 22nd Nov 2019...
  21.  
  22.  
  23. REMEMBER: My coding knowledge is close to zero
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement