Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a video throws exception AttributeError: 'Video' object has no attribute 'user' #49

Open
gerroon opened this issue Dec 7, 2018 · 0 comments

Comments

@gerroon
Copy link

gerroon commented Dec 7, 2018

 2018-12-07 00:32:21,741|20364|140031100450560|video_downloader|delete_video.py|16|INFO|Deleting file data/videos/USER/USER/XXXXXX - XXXXXSubscribers! [vV5WNgd5MYY].›
  2018-12-07 00:32:21,897|20364|140031100450560|video_downloader|delete_video.py|29|INFO|Deleted video 13921 successfully! (3 files) [vV5WNgd5MYY XXXXXSubscribers!]                          
  2018-12-07 00:32:21,897|20364|140031100450560|apscheduler.executors.default|base.py|144|INFO|Job "delete_video (trigger: date[2018-12-07 00:32:21 UTC], next run at: 2018-12-07 00:32:21 UT›
  2018-12-07 00:32:21,743|20364|140031066355456|django.request|log.py|228|ERROR|Internal Server Error: /ajax/action/delete_video_files/13921                                                  
  Traceback (most recent call last):                                                                                                                                                          
    File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 34, in inner                                                                                        
      response = get_response(request)                                                                                                                                                        
    File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", line 126, in _get_response                                                                                    
      response = self.process_exception_by_middleware(e, request)                                                                                                                             
    File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", line 124, in _get_response                                                                                    
      response = wrapped_callback(request, *callback_args, **callback_kwargs)                                                                                                                 
    File "/usr/local/lib/python3.6/dist-packages/django/views/generic/base.py", line 68, in view                                                                                              
      return self.dispatch(request, *args, **kwargs)                                                                                                                                          
    File "/usr/local/lib/python3.6/dist-packages/django/contrib/auth/mixins.py", line 52, in dispatch                                                                                         
      return super().dispatch(request, *args, **kwargs)                                                                                                                                       
    File "/usr/local/lib/python3.6/dist-packages/django/views/generic/base.py", line 88, in dispatch                                                                                          
      return handler(request, *args, **kwargs)                                                                                                                                                
    File "/media/O/VIDEO/ytsm_sys/app/YtManagerApp/views/actions.py", line 20, in post                                                                                                        
      video.delete_files()                                                                                                                                                                    
    File "/media/O/VIDEO/ytsm_sys/app/YtManagerApp/models.py", line 372, in delete_files                                                                                                      
      if settings.getboolean_sub(self, 'user', 'MarkDeletedAsWatched'):                                                                                                                       
    File "/media/O/VIDEO/ytsm_sys/app/YtManagerApp/appconfig.py", line 83, in getboolean_sub                                                                                                  
      vars=self.__get_combined_dict(vars, sub, sub.user))                                                                                                                                     
  AttributeError: 'Video' object has no attribute 'user'                          
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant