1
0
mirror of https://framagit.org/StCyr/plugin.video.peertube synced 2025-06-05 22:09:16 +02:00

Replace single quotes with double quotes

Make this a coding rule so that apostrophes don't need to be escaped in
strings (they are common in English and other languages).
This commit is contained in:
Thomas
2021-04-19 13:20:47 +00:00
parent 074be7aa12
commit 6f94e05398
5 changed files with 138 additions and 140 deletions

View File

@ -19,7 +19,7 @@ def debug(message):
(the name is hard-coded to avoid calling xbmcaddon each time since the name
should not change)
"""
xbmc.log('[PeerTube] {}'.format(message), xbmc.LOGDEBUG)
xbmc.log("[PeerTube] {}".format(message), xbmc.LOGDEBUG)
def get_property(name):
"""Retrieve the value of a window property related to the add-on
@ -29,7 +29,7 @@ def get_property(name):
:return: Value of the window property
:rtype: str
"""
return xbmcgui.Window(10000).getProperty('peertube_{}'.format(name))
return xbmcgui.Window(10000).getProperty("peertube_{}".format(name))
def get_setting(setting_name):
"""Retrieve the value of a setting
@ -85,7 +85,7 @@ def set_property(name, value):
actual name of the property is prefixed with "peertube_")
:param str value: New value of the property
"""
xbmcgui.Window(10000).setProperty('peertube_{}'.format(name), value)
xbmcgui.Window(10000).setProperty("peertube_{}".format(name), value)
def set_setting(setting_name, setting_value):
"""Modify the value of a setting