Skip to content

Commit f5107e2

Browse files
committed
Remove unused code
1 parent b32eddf commit f5107e2

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

lib/srgssr.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,35 +1402,6 @@ def write_search(self, filename, name, max_entries=10):
14021402
with open(file_path, 'w') as f:
14031403
json.dump(write_dict_list, f)
14041404

1405-
# Live TV is currently not supported due to recently added DRM protection:
1406-
#
1407-
# https://www.srf.ch/sendungen/hallosrf/weshalb-funktioniert-der-livestream-auf-srf-ch-nicht-mehr
1408-
# https://rtsr.ch/digitalrightsmanagement/
1409-
# https://www.rsi.ch/chi-siamo/mestieri/La-SSR-introduce-la-codifica-digitale-11038056.html
1410-
#
1411-
#
1412-
# def build_tv_menu(self):
1413-
# """
1414-
# Builds the overview over the TV channels.
1415-
# """
1416-
# overview_url = '%s/play/tv/live/overview' % self.host_url
1417-
# overview_json = json.loads(
1418-
# self.open_url(overview_url, use_cache=False))
1419-
# urns = [utils.try_get(x, 'urn') for x in utils.try_get(
1420-
# overview_json, 'teaser', data_type=list, default=[])
1421-
# if utils.try_get(x, 'urn')]
1422-
# for urn in urns:
1423-
# json_url = ('https://il.srgssr.ch/integrationlayer/2.0/'
1424-
# 'mediaComposition/byUrn/%s.json') % urn
1425-
# info_json = json.loads(self.open_url(json_url, use_cache=False))
1426-
# json_entry = utils.try_get(
1427-
# info_json, ('chapterList', 0), data_type=dict, default={})
1428-
# if not json_entry:
1429-
# self.log('build_tv_menu: Unexpected json structure '
1430-
# 'for element %s' % urn)
1431-
# continue
1432-
# self.build_entry(json_entry)
1433-
14341405
def _read_youtube_channels(self, fname):
14351406
"""
14361407
Reads YouTube channel IDs from a specified file and returns a list

0 commit comments

Comments
 (0)