asciidisco/plugin.video.netflix

View on GitHub

Showing 112 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

          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

              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

                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

                KodiHelper has 34 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class KodiHelper(object):
                """
                Consumes all the configuration data from Kodi as well as
                turns data into lists of folders and videos"""
                 
                 
                Severity: Minor
                Found in resources/lib/KodiHelper.py - About 4 hrs to fix

                  Function _generate_context_menu_items has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
                  Open

                  def _generate_context_menu_items(self, entry, li):
                  """Adds context menue items to a Kodi list item
                   
                  Parameters
                  ----------
                  Severity: Minor
                  Found in resources/lib/KodiHelper.py - About 4 hrs to fix

                  Function build_main_menu_listing has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
                  Open

                  def build_main_menu_listing(self, video_list_ids, user_list_order, actions,
                  build_url, widget_display=False):
                  """
                  Builds the video lists (my list, continue watching, etc.) Kodi screen
                   
                   
                  Severity: Minor
                  Found in resources/lib/KodiHelper.py - About 4 hrs to fix

                  Navigation has 33 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class Navigation(object):
                  """
                  Routes to the correct subfolder,
                  dispatches actions & acts as a controller
                  for the Kodi view & the Netflix model
                  Severity: Minor
                  Found in resources/lib/Navigation.py - About 4 hrs to fix

                    File NetflixHttpSubRessourceHandler.py has 318 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    # pylint: skip-file
                    # -*- coding: utf-8 -*-
                    # Module: NetflixHttpSubRessourceHandler
                    # Created on: 07.03.2017
                     
                     
                    Severity: Minor
                    Found in resources/lib/NetflixHttpSubRessourceHandler.py - About 3 hrs to fix

                      Library has 29 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Library(object):
                      """Exports Netflix shows & movies to a local library folder"""
                       
                      series_label = 'shows'
                      """str: Label to identify shows"""
                      Severity: Minor
                      Found in resources/lib/Library.py - About 3 hrs to fix

                        Function is_logged_in has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
                        Open

                        def is_logged_in(self, account):
                        """
                        Determines if a user is already logged in (with a valid cookie)
                         
                        Parameters
                        Severity: Minor
                        Found in resources/lib/NetflixSession.py - About 3 hrs to fix

                        Function get_show_content_by_id has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
                        Open

                        def get_show_content_by_id(self, showid, showseason, showepisode):
                        showseason = int(showseason)
                        showepisode = int(showepisode)
                        props = ["title", "showtitle", "season", "episode", "plot", "fanart",
                        "art", "resume", "playcount"]
                        Severity: Minor
                        Found in resources/lib/KodiHelper.py - About 3 hrs to fix

                        Function updatedb_from_exported has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                        Open

                        def updatedb_from_exported(self):
                        """Adds movies and shows from exported media to the local db
                         
                        Returns
                        -------
                        Severity: Minor
                        Found in resources/lib/Library.py - About 2 hrs to fix
                        Severity
                        Category
                        Status
                        Source
                        Language