Set Youtube ID defaults to the empty string.
This commit is contained in:
@@ -6,11 +6,11 @@ from lettuce import world, step
|
||||
|
||||
@step('I see the correct settings and default values$')
|
||||
def i_see_the_correct_settings_and_values(step):
|
||||
world.verify_all_setting_entries([['.75x', 'JMD_ifUUfsU', False],
|
||||
['1.25x', 'AKqURZnYqpk', False],
|
||||
['1.5x', 'DYpADpL7jAY', False],
|
||||
world.verify_all_setting_entries([['.75x', '', False],
|
||||
['1.25x', '', False],
|
||||
['1.5x', '', False],
|
||||
['Display Name', 'default', True],
|
||||
['Normal Speed', 'OEoXaMPEzfM', False],
|
||||
['Normal Speed', '', False],
|
||||
['Show Captions', 'True', False],
|
||||
['Source', '', False],
|
||||
['Track', '', False]])
|
||||
|
||||
@@ -22,10 +22,10 @@ class VideoFields(object):
|
||||
"""Fields for `VideoModule` and `VideoDescriptor`."""
|
||||
position = Integer(help="Current position in the video", scope=Scope.user_state, default=0)
|
||||
show_captions = StringyBoolean(help="Whether or not captions are shown", display_name="Show Captions", scope=Scope.settings, default=True)
|
||||
youtube_id_1_0 = String(help="Youtube ID for normal speed video", display_name="Normal Speed", scope=Scope.settings, default="OEoXaMPEzfM")
|
||||
youtube_id_0_75 = String(help="Youtube ID for .75x speed video", display_name=".75x", scope=Scope.settings, default="JMD_ifUUfsU")
|
||||
youtube_id_1_25 = String(help="Youtube ID for 1.25x speed video", display_name="1.25x", scope=Scope.settings, default="AKqURZnYqpk")
|
||||
youtube_id_1_5 = String(help="Youtube ID for 1.5x speed video", display_name="1.5x", scope=Scope.settings, default="DYpADpL7jAY")
|
||||
youtube_id_1_0 = String(help="Youtube ID for normal speed video", display_name="Normal Speed", scope=Scope.settings, default="")
|
||||
youtube_id_0_75 = String(help="Youtube ID for .75x speed video", display_name=".75x", scope=Scope.settings, default="")
|
||||
youtube_id_1_25 = String(help="Youtube ID for 1.25x speed video", display_name="1.25x", scope=Scope.settings, default="")
|
||||
youtube_id_1_5 = String(help="Youtube ID for 1.5x speed video", display_name="1.5x", scope=Scope.settings, default="")
|
||||
start_time = StringyFloat(help="Time the video starts", display_name="Start Time", scope=Scope.settings, default=0.0)
|
||||
end_time = StringyFloat(help="Time the video ends", display_name="End Time", scope=Scope.settings, default=0.0)
|
||||
source = String(help="Source to download video", display_name="Source", scope=Scope.settings, default="")
|
||||
|
||||
Reference in New Issue
Block a user