本文整理汇总了Python中myLib.miro_app.MiroApp.edit_item_video_metadata_bulk方法的典型用法代码示例。如果您正苦于以下问题:Python MiroApp.edit_item_video_metadata_bulk方法的具体用法?Python MiroApp.edit_item_video_metadata_bulk怎么用?Python MiroApp.edit_item_video_metadata_bulk使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myLib.miro_app.MiroApp
的用法示例。
在下文中一共展示了MiroApp.edit_item_video_metadata_bulk方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_657
# 需要导入模块: from myLib.miro_app import MiroApp [as 别名]
# 或者: from myLib.miro_app.MiroApp import edit_item_video_metadata_bulk [as 别名]
def test_657(self):
"""http://litmus.pculture.org/show_test.cgi?id=657 edit multiple fields
1. add Static List feed
2. download the Earth Eats item
3. Edit item metadata
"""
reg = MiroRegions()
miro = MiroApp()
time.sleep(5)
url = "http://ringtales.com/nyrss.xml"
feed = "The New"
title = "Cat"
new_metadata_list = [
["show","Animated Cartoons", "658"],
["episode_id","nya", "670"],
["season_no","25", "671"],
["episode_no","43", "672"],
["video_kind","Clip", "652"],
]
try:
#start clean
miro.delete_feed(reg, feed)
#add feed and download earth eats item
miro.add_feed(reg, url,feed)
miro.toggle_normal(reg)
miro.tab_search(reg, title)
if reg.m.exists("button_download.png",10):
click(reg.m.getLastMatch())
miro.wait_for_item_in_tab(reg, "Videos",item=title)
miro.click_podcast(reg, feed)
miro.tab_search(reg, title)
reg.m.click(title)
miro.edit_item_video_metadata_bulk(reg, new_metadata_list)
time.sleep(2)
miro.click_sidebar_tab(reg, "Videos")
miro.tab_search(reg, title)
reg.mtb.click("Clip")
if reg.m.exists(title):
reg.mtb.click("All")
else:
self.fail("item not found in Clips filter")
finally:
miro.quit_miro()
myLib.config.set_def_db_and_prefs()