1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

[Panopto] Preferring static over instance methods

This commit is contained in:
Kevin Mark 2017-07-06 20:16:33 -04:00
parent cbb1753395
commit bd7d8149d7

View File

@ -33,7 +33,8 @@ class PanoptoIE(PanoptoBaseIE):
_VALID_URL = r'^https?:\/\/(?P<org>[a-z0-9]+)\.hosted\.panopto.com\/Panopto\/Pages\/Viewer\.aspx\?id=(?P<id>[a-f0-9-]+)' _VALID_URL = r'^https?:\/\/(?P<org>[a-z0-9]+)\.hosted\.panopto.com\/Panopto\/Pages\/Viewer\.aspx\?id=(?P<id>[a-f0-9-]+)'
def _get_contribs_str(self, contribs): @staticmethod
def _get_contribs_str(contribs):
s = '' s = ''
for c in contribs: for c in contribs:
s += '%s, ' % c['DisplayName'] s += '%s, ' % c['DisplayName']