mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 11:47:28 +01:00
Allow removing video_url
This commit is contained in:
parent
c8b310ebdb
commit
625e4cf9ee
@ -130,7 +130,7 @@ def do_edit_package(user: User, package: Package, was_new: bool, was_web: bool,
|
|||||||
if "media_license" in data:
|
if "media_license" in data:
|
||||||
data["media_license"] = get_license(data["media_license"])
|
data["media_license"] = get_license(data["media_license"])
|
||||||
|
|
||||||
if "video_url" in data:
|
if "video_url" in data and data["video_url"] is not None:
|
||||||
data["video_url"] = clean_youtube_url(data["video_url"]) or data["video_url"]
|
data["video_url"] = clean_youtube_url(data["video_url"]) or data["video_url"]
|
||||||
if "dQw4w9WgXcQ" in data["video_url"]:
|
if "dQw4w9WgXcQ" in data["video_url"]:
|
||||||
raise LogicError(403, "Never gonna give you up / Never gonna let you down / Never gonna run around and desert you")
|
raise LogicError(403, "Never gonna give you up / Never gonna let you down / Never gonna run around and desert you")
|
||||||
|
Loading…
Reference in New Issue
Block a user