asciidisco/plugin.video.netflix

View on GitHub

Showing 673 of 673 total issues

File NetflixSession.py has 1843 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# pylint: skip-file
# -*- coding: utf-8 -*-
# Author: asciidisco
# Module: default
# Created on: 13.01.2017
Severity: Major
Found in resources/lib/NetflixSession.py - About 5 days to fix

    File KodiHelper.py has 1268 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # pylint: skip-file
    # -*- coding: utf-8 -*-
    # Module: KodiHelper
    # Created on: 13.01.2017
     
     
    Severity: Major
    Found in resources/lib/KodiHelper.py - About 3 days to fix

      File Navigation.py has 911 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # pylint: skip-file
      # -*- coding: utf-8 -*-
      # Author: asciidisco
      # Module: Navigation
      # Created on: 13.01.2017
      Severity: Major
      Found in resources/lib/Navigation.py - About 2 days to fix

        File Library.py has 720 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        # pylint: skip-file
        # -*- coding: utf-8 -*-
        # Module: LibraryExporter
        # Created on: 13.01.2017
         
         
        Severity: Major
        Found in resources/lib/Library.py - About 1 day to fix

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          def parse_directors_for_video(self, video, persons):
          """Matches ids with person names to generate a list of directors
           
          Parameters
          ----------
          Severity: Major
          Found in resources/lib/NetflixSession.py and 1 other location - About 1 day to fix
          resources/lib/NetflixSession.py on lines 899..924

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

          def parse_creators_for_video(self, video, persons):
          """Matches ids with person names to generate a list of creators
           
          Parameters
          ----------
          Severity: Major
          Found in resources/lib/NetflixSession.py and 1 other location - About 1 day to fix
          resources/lib/NetflixSession.py on lines 926..951

          File MSLv2.py has 609 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # pylint: skip-file
          # -*- coding: utf-8 -*-
          # Author: trummerjo
          # Module: MSLHttpRequestHandler
          # Created on: 26.01.2017
          Severity: Major
          Found in resources/lib/MSLv2.py - About 1 day to fix

            File MSL.py has 585 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # pylint: skip-file
            # -*- coding: utf-8 -*-
            # Author: trummerjo
            # Module: MSLHttpRequestHandler
            # Created on: 26.01.2017
            Severity: Major
            Found in resources/lib/MSL.py - About 1 day to fix

              Cyclomatic complexity is too high in method router. (44)
              Open

              self.log = self.nx_common.log
               
              @log
              def router(self, paramstring):
              """
              Severity: Minor
              Found in resources/lib/Navigation.py by radon

              Function router has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring.
              Open

              def router(self, paramstring):
              """
              Route to the requested subfolder & dispatch actions along the way
               
              Parameters
              Severity: Minor
              Found in resources/lib/Navigation.py - About 1 day to fix

              Function __tranform_to_dash has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring.
              Open

              def __tranform_to_dash(self, manifest):
               
              self.nx_common.save_file(
              data_path=self.nx_common.data_path,
              filename='manifest.json',
              Severity: Minor
              Found in resources/lib/MSL.py - About 7 hrs to fix

              NetflixSession has 55 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class NetflixSession(object):
              """Helps with login/session management of Netflix users & API handling"""
               
              base_url = 'https://www.netflix.com'
              """str: Secure Netflix url"""
              Severity: Major
              Found in resources/lib/NetflixSession.py - About 7 hrs to fix

                Function __tranform_to_dash has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
                Open

                def __tranform_to_dash(self, manifest):
                 
                self.nx_common.save_file(
                data_path=self.nx_common.data_path,
                filename='manifest.json',
                Severity: Minor
                Found in resources/lib/MSLv2.py - About 7 hrs to fix

                Cyclomatic complexity is too high in method _generate_entry_info. (38)
                Open

                return infos
                 
                def _generate_entry_info(self, entry, base_info):
                """Adds the item info from an entry to a Kodi list item
                 
                 
                Severity: Minor
                Found in resources/lib/KodiHelper.py by radon

                Function _generate_entry_info has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                Open

                def _generate_entry_info(self, entry, base_info):
                """Adds the item info from an entry to a Kodi list item
                 
                Parameters
                ----------
                Severity: Minor
                Found in resources/lib/KodiHelper.py - About 6 hrs to fix

                Cyclomatic complexity is too high in method __tranform_to_dash. (28)
                Open

                return json.JSONDecoder().decode(decrypted_payload)
                 
                def __tranform_to_dash(self, manifest):
                 
                self.nx_common.save_file(
                Severity: Minor
                Found in resources/lib/MSL.py by radon

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                def write_artdata_file(self, video_id, content):
                """Writes the art data file that caches grabbed content from netflix
                 
                Parameters
                ----------
                Severity: Major
                Found in resources/lib/Library.py and 1 other location - About 5 hrs to fix
                resources/lib/Library.py on lines 135..150

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                def read_metadata_file(self, video_id):
                """Reads the metadata file that caches grabbed content from netflix
                 
                Parameters
                ----------
                Severity: Major
                Found in resources/lib/Library.py and 1 other location - About 5 hrs to fix
                resources/lib/Library.py on lines 172..190

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                def read_artdata_file(self, video_id):
                """Reads the artdata file that caches grabbed content from netflix
                 
                Parameters
                ----------
                Severity: Major
                Found in resources/lib/Library.py and 1 other location - About 5 hrs to fix
                resources/lib/Library.py on lines 152..170

                Similar blocks of code found in 2 locations. Consider refactoring.
                Open

                def write_metadata_file(self, video_id, content):
                """Writes the metadata file that caches grabbed content from netflix
                 
                Parameters
                ----------
                Severity: Major
                Found in resources/lib/Library.py and 1 other location - About 5 hrs to fix
                resources/lib/Library.py on lines 192..207
                Severity
                Category
                Status
                Source
                Language