zbyna/plugin.video.sosac.ph

View on GitHub
resources/lib/sosac.py

Summary

Maintainability
A
0 mins
Test Coverage

File sosac.py has 765 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

# -*- coding: UTF-8 -*-
# /*
# *      Copyright (C) 2015 Libor Zoubek + jondas
# *
# *
Severity: Major
Found in resources/lib/sosac.py - About 1 day to fix

    SosacContentProvider has 52 functions (exceeds 20 allowed). Consider refactoring.
    Wontfix

    class SosacContentProvider(ContentProvider):
        ISO_639_1_CZECH = None
        par = None
    
        def __init__(self, username=None, password=None, filter=None, reverse_eps=False,
    Severity: Major
    Found in resources/lib/sosac.py - About 7 hrs to fix

      Function csfd_lists has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
      Wontfix

          def csfd_lists(self, url):
              if 'level_0' in url:
                  return self.prepare_dirs(csfd['level_0'])
              if 'zebricky/' in url:
                  if 'level_1' in url:
      Severity: Minor
      Found in resources/lib/sosac.py - About 4 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function list_episodes has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Wontfix

          def list_episodes(self, url):
              result = []
              data = util.request(url)
              json_series = json.loads(data)
              for series in json_series:
      Severity: Minor
      Found in resources/lib/sosac.py - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function all_movies_by_name has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Wontfix

          def all_movies_by_name(self, keyForDict):
              result = {}
              for p in self.all_videos():
                  pom = p[keyForDict]['en'][0:2]
                  if pom == 'Ch':
      Severity: Minor
      Found in resources/lib/sosac.py - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function all_tvshows_by_name has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
      Wontfix

          def all_tvshows_by_name(self, keyForDict):
              result = {}
              for p in self.all_tvshows():
                  pom = p[keyForDict]['en'][0:2]
                  if pom == 'Ch':
      Severity: Minor
      Found in resources/lib/sosac.py - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function list_videos_create has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Wontfix

          def list_videos_create(self, videoArray):
              result = []
              for video in videoArray:
                  item = self.video_item()
                  namePom = self.get_video_name(video)
      Severity: Minor
      Found in resources/lib/sosac.py - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function list_videos has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Wontfix

          def list_videos(self, url):
              if self.force_english and ('p/' in url):
                  pom = self.all_movies_by_name('n')
                  pom_url = url.split('/')[1]
                  force_ch = ADDON_SETTINGS_GET('force-ch') == 'true'
      Severity: Minor
      Found in resources/lib/sosac.py - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function list has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
      Wontfix

          def list(self, url):
              util.info("Examining url " + url)
              if J_MOVIES_A_TO_Z_TYPE in url:
                  return self.load_json_list(url)
              if J_MOVIES_GENRE in url:
      Severity: Minor
      Found in resources/lib/sosac.py - About 1 hr to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function list_series_letter has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
      Wontfix

          def list_series_letter(self, url):
              if self.force_english and J_TV_SHOWS_MOST_POPULAR not in url:
                  pom = self.all_tvshows_by_name('n')
                  pom_url = url.split('#')[1]
                  force_ch = ADDON_SETTINGS_GET('force-ch') == 'true'
      Severity: Minor
      Found in resources/lib/sosac.py - About 55 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function add_to_library_decorator has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
      Wontfix

          def add_to_library_decorator(func):
              def wrapper(*args, **kwargs):
                  pomSeznam, question, libraryType = func(*args, **kwargs)
                  total = len(pomSeznam)
                  for i, video in enumerate(pomSeznam):
      Severity: Minor
      Found in resources/lib/sosac.py - About 45 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Wontfix

          def __init__(self, username=None, password=None, filter=None, reverse_eps=False,
      Severity: Minor
      Found in resources/lib/sosac.py - About 45 mins to fix

        Function subscription_manager_baselist has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Wontfix

            def subscription_manager_baselist(self):
                shows = []
                for serial in self.all_tvshows():
                    shows.append(serial)
                if self.force_english:
        Severity: Minor
        Found in resources/lib/sosac.py - About 35 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function on_init has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Wontfix

            def on_init(self):
                custom_sort_dict = {'czech': 'cs_CZ.utf8', 'english': 'en_GB.utf8', 'os': ''}
                if self.force_english:
                    self.ISO_639_1_CZECH = 'en'
                    custom_sort = ADDON_SETTINGS_GET('force-sort')
        Severity: Minor
        Found in resources/lib/sosac.py - About 35 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function list_series_create has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Wontfix

            def list_series_create(self, json_series_array):
                result = []
                i = 0
                for serial in json_series_array:
                    item = self.dir_item()
        Severity: Minor
        Found in resources/lib/sosac.py - About 35 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function extract_info_awards has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Wontfix

            def extract_info_awards(self, url, tableClass):
                # ========================================================================================
                # extracts 'awards' info from <div class=tableClass>
                # and returns list of media presented in sosac
                # ========================================================================================
        Severity: Minor
        Found in resources/lib/sosac.py - About 35 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Function resolve has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
        Wontfix

            def resolve(self, item, captcha_cb=None, select_cb=None):
        
                def probeHTML5(result):
                    r = requests.get(result['url'], headers=result['headers'], allow_redirects=False)
                    if r.status_code == 302:
        Severity: Minor
        Found in resources/lib/sosac.py - About 35 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Avoid too many return statements within this function.
        Wontfix

                    return self.a_to_z(J_TV_SHOWS)
        Severity: Major
        Found in resources/lib/sosac.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Wontfix

                          return self.prepare_dirs(odkazy)
          Severity: Major
          Found in resources/lib/sosac.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Wontfix

                        return self.list_recentlyadded_episodes(url)
            Severity: Major
            Found in resources/lib/sosac.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Wontfix

                              return self.list_videos_create(result)
              Severity: Major
              Found in resources/lib/sosac.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Wontfix

                                return self.prepare_dirs(odkazy)
                Severity: Major
                Found in resources/lib/sosac.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Wontfix

                                  return self.prepare_dirs(csfd['level_0'][1]['level_1'])
                  Severity: Major
                  Found in resources/lib/sosac.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Wontfix

                                        return self.list_videos_create(result)
                    Severity: Major
                    Found in resources/lib/sosac.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Wontfix

                                          return self.list_videos_create(result)
                      Severity: Major
                      Found in resources/lib/sosac.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Wontfix

                                    return self.list_episodes(url)
                        Severity: Major
                        Found in resources/lib/sosac.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Wontfix

                                      return self.subscription_manager_tvshows_all_xml()
                          Severity: Major
                          Found in resources/lib/sosac.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Wontfix

                                    return self.list_videos(url)
                            Severity: Major
                            Found in resources/lib/sosac.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Wontfix

                                              return self.prepare_dirs(result)
                              Severity: Major
                              Found in resources/lib/sosac.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Wontfix

                                            return self.list_videos(url)
                                Severity: Major
                                Found in resources/lib/sosac.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Wontfix

                                              return self.list_series_letter(url)
                                  Severity: Major
                                  Found in resources/lib/sosac.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Wontfix

                                                return self.csfd_lists(url)
                                    Severity: Major
                                    Found in resources/lib/sosac.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Wontfix

                                                      return self.list_series_create(result)
                                      Severity: Major
                                      Found in resources/lib/sosac.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Wontfix

                                                    return self.list_series_letter(url)
                                        Severity: Major
                                        Found in resources/lib/sosac.py - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Wontfix

                                                          return self.prepare_dirs(result)
                                          Severity: Major
                                          Found in resources/lib/sosac.py - About 30 mins to fix

                                            Function categories has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                            Wontfix

                                                def categories(self):
                                                    result = []
                                                    for title, url in [
                                                            (MOVIES, URL + J_MOVIES_A_TO_Z_TYPE),
                                                            (TV_SHOWS, URL + J_TV_SHOWS_A_TO_Z_TYPE),
                                            Severity: Minor
                                            Found in resources/lib/sosac.py - About 25 mins to fix

                                            Cognitive Complexity

                                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                            A method's cognitive complexity is based on a few simple rules:

                                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                            • Code is considered more complex for each "break in the linear flow of the code"
                                            • Code is considered more complex when "flow breaking structures are nested"

                                            Further reading

                                            Function extract_info has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                            Wontfix

                                                def extract_info(self, url, itemType):
                                                    # ========================================================================================
                                                    # extracts 'film' or 'tvseries' info from <table class="content ui-table-list striped">
                                                    # and returns list of media items presented in sosac
                                                    # ========================================================================================
                                            Severity: Minor
                                            Found in resources/lib/sosac.py - About 25 mins to fix

                                            Cognitive Complexity

                                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                            A method's cognitive complexity is based on a few simple rules:

                                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                            • Code is considered more complex for each "break in the linear flow of the code"
                                            • Code is considered more complex when "flow breaking structures are nested"

                                            Further reading

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

                                                @simplecache.use_cache(cache_days=7)
                                                def all_movies_by_name(self, keyForDict):
                                                    result = {}
                                                    for p in self.all_videos():
                                                        pom = p[keyForDict]['en'][0:2]
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 1 day to fix
                                            resources/lib/sosac.py on lines 430..447

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 166.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                @simplecache.use_cache(cache_days=7)
                                                def all_tvshows_by_name(self, keyForDict):
                                                    result = {}
                                                    for p in self.all_tvshows():
                                                        pom = p[keyForDict]['en'][0:2]
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 1 day to fix
                                            resources/lib/sosac.py on lines 411..428

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 166.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                @simplecache.use_cache(cache_days=7)
                                                def all_movies_with_key(self, keyForDict):
                                                    # =======================================================================================
                                                    # Downloads all json for individual letters
                                                    # and creates {keyForDict : [ {movies} ]} from them so that
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 5 hrs to fix
                                            resources/lib/sosac.py on lines 380..393

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 92.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                @simplecache.use_cache(cache_days=7)
                                                def all_tvshows_with_key(self, keyForDict):
                                                    # =======================================================================================
                                                    # Downloads all json for individual letters
                                                    # and creates {keyForDict : [ {tvshows} ]} from them so that
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 5 hrs to fix
                                            resources/lib/sosac.py on lines 396..409

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 92.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Identical blocks of code found in 2 locations. Consider refactoring.
                                            Wontfix

                                                            item['menu'] = {
                                                                "[B][COLOR red]" + ADD_TO_LIBRARY + "[/COLOR][/B]": {
                                                                    'url': item['url'],
                                                                    'action': 'add-to-library',
                                                                    'name': self.get_library_video_name(serial),
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 4 hrs to fix
                                            resources/lib/sosac.py on lines 635..646

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 85.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                        if force_ch:
                                                            json_video_array = sorted(pom[url.split('/')[1]],
                                                                                      key=lambda k: k['n']['en'],
                                                                                      cmp=locale.strcoll)
                                                        else:
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 4 hrs to fix
                                            resources/lib/sosac.py on lines 343..355

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 85.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Identical blocks of code found in 2 locations. Consider refactoring.
                                            Wontfix

                                                        item['menu'] = {
                                                            "[B][COLOR red]" + ADD_TO_LIBRARY + "[/COLOR][/B]": {
                                                                'url': item['url'],
                                                                'action': 'add-to-library',
                                                                'name': self.get_library_video_name(serial),
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 4 hrs to fix
                                            resources/lib/sosac.py on lines 321..331

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 85.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                        if force_ch:
                                                            json_series_array = sorted(pom[pom_url],
                                                                                       key=lambda k: k['n']['en'],
                                                                                       cmp=locale.strcoll)
                                                        else:
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 4 hrs to fix
                                            resources/lib/sosac.py on lines 283..295

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 85.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                        if OCENENI_OSCAR in url:
                                                            if OCENENI_OSCAR_ROKY in url:
                                                                result = self.extract_info_awards(url, 'th-1 ct-general oscars')
                                                                return self.list_videos_create(result)
                                                            odkazy = self.extract_info_roky(url)
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 2 hrs to fix
                                            resources/lib/sosac.py on lines 846..851

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 61.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                        if OCENENI_ZLATA_PALMA in url:
                                                            if OCENENI_ZLATA_PALMA_ROKY in url:
                                                                result = self.extract_info_awards(url, 'th-1 ct-general cannes-iff')
                                                                return self.list_videos_create(result)
                                                            odkazy = self.extract_info_roky(url)
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 2 hrs to fix
                                            resources/lib/sosac.py on lines 840..845

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 61.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                    if self.force_english:
                                                        shows.sort(key=lambda k: k['n']['en'], cmp=locale.strcoll)
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 1 hr to fix
                                            resources/lib/sosac.py on lines 505..506

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 40.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                    if self.force_english:
                                                        json_series.sort(key=lambda k: k['t']['en'], cmp=locale.strcoll)
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 1 hr to fix
                                            resources/lib/sosac.py on lines 622..623

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 40.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                                if video['i'] is not None:
                                                                    item['img'] = IMAGE_EPISODE + video['i']
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 1 hr to fix
                                            resources/lib/sosac.py on lines 510..511

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 39.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                        if episode['i'] is not None:
                                                            item['img'] = IMAGE_EPISODE + episode['i']
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 1 other location - About 1 hr to fix
                                            resources/lib/sosac.py on lines 493..494

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 39.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                        if 'level_1' in url:
                                                            return self.prepare_dirs(csfd['level_0'][1]['level_1'])
                                            Severity: Minor
                                            Found in resources/lib/sosac.py and 1 other location - About 55 mins to fix
                                            resources/lib/sosac.py on lines 817..818

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 37.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                        if 'level_1' in url:
                                                            return self.prepare_dirs(csfd['level_0'][0]['level_1'])
                                            Severity: Minor
                                            Found in resources/lib/sosac.py and 1 other location - About 55 mins to fix
                                            resources/lib/sosac.py on lines 838..839

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 37.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Similar blocks of code found in 3 locations. Consider refactoring.
                                            Wontfix

                                                        item['menu'] = {"[B][COLOR red]" + ADD_ALL_TO_LIBRARY + "[/COLOR][/B]":
                                                                        {'action': 'add-all-to-library',
                                                                         'title': MOVIES_BY_GENRES,
                                                                         'url': value}
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 2 other locations - About 45 mins to fix
                                            resources/lib/sosac.py on lines 155..157
                                            resources/lib/sosac.py on lines 470..473

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 35.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Identical blocks of code found in 2 locations. Consider refactoring.
                                            Wontfix

                                                    year = (" (" + video['y'] + ") ") if video['y'] else " "
                                            Severity: Minor
                                            Found in resources/lib/sosac.py and 1 other location - About 45 mins to fix
                                            resources/lib/sosac.py on lines 518..518

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 35.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Identical blocks of code found in 2 locations. Consider refactoring.
                                            Wontfix

                                                    year = (" (" + video['y'] + ") ") if video['y'] else " "
                                            Severity: Minor
                                            Found in resources/lib/sosac.py and 1 other location - About 45 mins to fix
                                            resources/lib/sosac.py on lines 526..526

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 35.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Similar blocks of code found in 3 locations. Consider refactoring.
                                            Wontfix

                                                        item['menu'] = {"[B][COLOR red]" + ADD_ALL_TO_LIBRARY + "[/COLOR][/B]": {
                                                                        'action': 'add-all-to-library',
                                                                        'title': MOVIES_BY_YEAR,
                                                                        'url': urlPom}}
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 2 other locations - About 45 mins to fix
                                            resources/lib/sosac.py on lines 155..157
                                            resources/lib/sosac.py on lines 241..244

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 35.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Similar blocks of code found in 3 locations. Consider refactoring.
                                            Wontfix

                                                        if title == MOVIES or title == TV_SHOWS or title == MOVIES_RECENTLY_ADDED:
                                                            item['menu'] = {"[B][COLOR red]" + ADD_ALL_TO_LIBRARY + "[/COLOR][/B]": {
                                                                'action': 'add-all-to-library', 'title': title, 'url': url}}
                                            Severity: Major
                                            Found in resources/lib/sosac.py and 2 other locations - About 45 mins to fix
                                            resources/lib/sosac.py on lines 241..244
                                            resources/lib/sosac.py on lines 470..473

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 35.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                @add_to_library_decorator
                                                def csfd_tvshows_to_library(self, url):
                                                    result = self.extract_info(url, 'tvshow')
                                                    return (self.list_series_create(result), False, LIBRARY_TYPE_TVSHOW)
                                            Severity: Minor
                                            Found in resources/lib/sosac.py and 1 other location - About 40 mins to fix
                                            resources/lib/sosac.py on lines 592..595

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 34.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

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

                                                @add_to_library_decorator
                                                def csfd_film_to_library(self, url):
                                                    result = self.extract_info(url, 'film')
                                                    return (self.list_videos_create(result), False, LIBRARY_TYPE_VIDEO)
                                            Severity: Minor
                                            Found in resources/lib/sosac.py and 1 other location - About 40 mins to fix
                                            resources/lib/sosac.py on lines 597..600

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 34.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Similar blocks of code found in 3 locations. Consider refactoring.
                                            Wontfix

                                                        if RATING in video:
                                                            item['rating'] = video[RATING] * RATING_STEP
                                            Severity: Minor
                                            Found in resources/lib/sosac.py and 2 other locations - About 35 mins to fix
                                            resources/lib/sosac.py on lines 315..316
                                            resources/lib/sosac.py on lines 631..632

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 33.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Similar blocks of code found in 3 locations. Consider refactoring.
                                            Wontfix

                                                        if RATING in serial:
                                                            item['rating'] = serial[RATING] * RATING_STEP
                                            Severity: Minor
                                            Found in resources/lib/sosac.py and 2 other locations - About 35 mins to fix
                                            resources/lib/sosac.py on lines 259..260
                                            resources/lib/sosac.py on lines 631..632

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 33.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Similar blocks of code found in 3 locations. Consider refactoring.
                                            Wontfix

                                                        if RATING in serial:
                                                            item['rating'] = serial[RATING] * RATING_STEP
                                            Severity: Minor
                                            Found in resources/lib/sosac.py and 2 other locations - About 35 mins to fix
                                            resources/lib/sosac.py on lines 259..260
                                            resources/lib/sosac.py on lines 315..316

                                            Duplicated Code

                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                            Tuning

                                            This issue has a mass of 33.

                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                            Refactorings

                                            Further Reading

                                            Line too long (92 > 79 characters)
                                            Open

                                                    opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookielib.LWPCookieJar()))
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (83 > 79 characters)
                                            Open

                                                        util.info('"%s" - elapsed time: %f' % (func.__name__, end_ts - beg_ts))
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (93 > 79 characters)
                                            Open

                                                            title="Search query must be between 3 and 100 characters long!", url="fail")]
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (87 > 79 characters)
                                            Open

                                                    __letters = ['0-9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (83 > 79 characters)
                                            Open

                                                        item['menu'] = {"[B][COLOR red]" + ADD_ALL_TO_LIBRARY + "[/COLOR][/B]":
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (83 > 79 characters)
                                            Open

                                                            item['menu'] = {"[B][COLOR red]" + ADD_TO_LIBRARY + "[/COLOR][/B]":
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (87 > 79 characters)
                                            Open

                                                        pom = executor.map(self.get_data_cached, (URL + J_TV_SHOWS + item + ".json"
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (88 > 79 characters)
                                            Open

                                                            item = video['menu']['[B][COLOR red]' + ADD_TO_LIBRARY + '[/COLOR][/B]']
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (99 > 79 characters)
                                            Open

                                                                result.append({"q": "", "i": "", "n": {"cs": ''.join(['[COLOR red]', naz, neni,
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (85 > 79 characters)
                                            Open

                                                        item['menu'] = {"[B][COLOR red]" + ADD_ALL_TO_LIBRARY + "[/COLOR][/B]": {
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (91 > 79 characters)
                                            Open

                                                                                               "en": ''.join(['[COLOR blue]', '----- ',
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (90 > 79 characters)
                                            Open

                                                                       "s": [],  "y": '', 'r': 0, "c": '', "m": "", "g": [], "l": ""})
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (85 > 79 characters)
                                            Open

                                                                             username=username, password=password, filter=filter)
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (89 > 79 characters)
                                            Open

                                                            item['menu'] = {"[B][COLOR red]" + ADD_ALL_TO_LIBRARY + "[/COLOR][/B]": {
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (84 > 79 characters)
                                            Open

                                                                            "[B][COLOR yellow]" + REMOVE_ALL_FROM_SUBSCRIPTION +
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (87 > 79 characters)
                                            Open

                                                                item['title'] = series_key + "x" + episode_key + " - " + video['n']
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (83 > 79 characters)
                                            Open

                                                    idFilmu = [film.get('id') for film in tabulka.findAll('td', class_='film')]
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (84 > 79 characters)
                                            Open

                                                def __init__(self, username=None, password=None, filter=None, reverse_eps=False,
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (94 > 79 characters)
                                            Open

                                                                    'Generate locale' + custom_sort_dict[custom_sort] + 'for your system',
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (96 > 79 characters)
                                            Open

                                                        pom = {executor.submit(self.get_data_cached, seznam[item]): item for item in seznam}
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (90 > 79 characters)
                                            Open

                                                                 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (89 > 79 characters)
                                            Open

                                                                                                              str(rok + 1), ' -----',
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (81 > 79 characters)
                                            Open

                                                    ContentProvider.__init__(self, name='sosac.ph', base_url=MOVIES_BASE_URL,
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (91 > 79 characters)
                                            Open

                                                                locale.setlocale(locale.LC_ALL, custom_sort_dict[custom_sort])  # Linux
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (95 > 79 characters)
                                            Open

                                                                                 "en": ''.join(['[COLOR red]', fil, nothing, "[/COLOR]"])},
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (86 > 79 characters)
                                            Open

                                                        if title == MOVIES or title == TV_SHOWS or title == MOVIES_RECENTLY_ADDED:
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Block comment should start with '# '
                                            Wontfix

                                                #@simplecache.use_cache(cache_days=7)
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Separate inline comments by at least two spaces.

                                            An inline comment is a comment on the same line as a statement.
                                            Inline comments should be separated by at least two spaces from the
                                            statement. They should start with a # and a single space.
                                            
                                            Each line of a block comment starts with a # and a single space
                                            (unless it is indented text inside the comment).
                                            
                                            Okay: x = x + 1  # Increment x
                                            Okay: x = x + 1    # Increment x
                                            Okay: # Block comment
                                            E261: x = x + 1 # Increment x
                                            E262: x = x + 1  #Increment x
                                            E262: x = x + 1  #  Increment x
                                            E265: #Block comment
                                            E266: ### Block comment

                                            Line too long (91 > 79 characters)
                                            Open

                                                        result.append({"q": "", "i": "", "n": {"cs": ''.join(['[COLOR blue]', '----- ',
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (85 > 79 characters)
                                            Open

                                                    custom_sort_dict = {'czech': 'cs_CZ.utf8', 'english': 'en_GB.utf8', 'os': ''}
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (94 > 79 characters)
                                            Open

                                                    seznam = ['0-9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'e', 'h', 'i', 'j', 'k', 'l', 'm',
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (91 > 79 characters)
                                            Open

                                                                           "n": {"cs": ''.join(['[COLOR red]', fil, neni, "[/COLOR]"]),
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (84 > 79 characters)
                                            Open

                                                        urlPom = ZEBRICKY_items_SPEC.replace('genre=', ''.join(['genre=', kod]))
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (88 > 79 characters)
                                            Open

                                                                                                              str(rok + 1), ' -----'
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (80 > 79 characters)
                                            Open

                                                                'action': 'add-all-to-library', 'title': title, 'url': url}}
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (80 > 79 characters)
                                            Open

                                                        result = self.extract_info_awards(url, 'th-1 ct-general cannes-iff')
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (95 > 79 characters)
                                            Open

                                                    # extracts 'film' or 'tvseries' info from <table class="content ui-table-list striped">
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (82 > 79 characters)
                                            Open

                                                    filmy = [film.get_text() for film in tabulka.findAll('td', class_='film')]
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (85 > 79 characters)
                                            Open

                                                                                                  for item in seznam), timeout=5)
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Test for membership should be 'not in'
                                            Wontfix

                                                            if not 'menu' in video:
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Negative comparison should be done using "not in" and "is not".

                                            Okay: if x not in y:\n    pass
                                            Okay: assert (X in Y or X is Z)
                                            Okay: if not (X in Y):\n    pass
                                            Okay: zz = x is not y
                                            E713: Z = not X in Y
                                            E713: if not X.B in Y:\n    pass
                                            E714: if not X is Y:\n    pass
                                            E714: Z = not X.B is Y

                                            Line too long (80 > 79 characters)
                                            Open

                                                                                                              "[/COLOR]"])},
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (82 > 79 characters)
                                            Open

                                                              'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (87 > 79 characters)
                                            Open

                                                                                                                      "[/COLOR]"]),
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (97 > 79 characters)
                                            Open

                                                                                                                      nothing, "[/COLOR]"])},
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (93 > 79 characters)
                                            Open

                                                                                                       "en": ''.join(['[COLOR red]', naz,
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (82 > 79 characters)
                                            Open

                                                    # DirtyFix nefunkcniho downloadu: Neznam kod tak se toho zkusenejsi chopte
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (84 > 79 characters)
                                            Open

                                                                result = self.extract_info_awards(url, 'th-1 ct-general oscars')
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (89 > 79 characters)
                                            Open

                                                                               "s": [], "y": '', "c": '', "m": "", "g": [], "l": ""})
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (84 > 79 characters)
                                            Open

                                                    odkazy = [{'name': odkaz.get_text(), 'url': CSFD_BASE + odkaz[('href')]} for
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (93 > 79 characters)
                                            Open

                                                        r = requests.get(result['url'], headers=result['headers'], allow_redirects=False)
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            Line too long (88 > 79 characters)
                                            Open

                                                                result = self.extract_info_awards(url, 'th-1 ct-general cannes-iff')
                                            Severity: Minor
                                            Found in resources/lib/sosac.py by pep8

                                            Limit all lines to a maximum of 79 characters.

                                            There are still many devices around that are limited to 80 character
                                            lines; plus, limiting windows to 80 characters makes it possible to
                                            have several windows side-by-side.  The default wrapping on such
                                            devices looks ugly.  Therefore, please limit all lines to a maximum
                                            of 79 characters. For flowing long blocks of text (docstrings or
                                            comments), limiting the length to 72 characters is recommended.
                                            
                                            Reports error E501.

                                            There are no issues that match your filters.

                                            Category
                                            Status