Skip to content

Commit

Permalink
- Added fix_youtube_urls to remove garbage html tags that get picked up.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyrumple committed Jun 18, 2022
1 parent 0187cc1 commit b41a149
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web2py/applications/smc/models/x_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,9 +1520,9 @@ def cleanup_youtube_urls():
yt_urls_fixed_count += 1
print(f"Fixed YT URL: {yt_url} -> {new_yt_url}")

# media_file.youtube_url = yt_url
# media_file.update_record()
# db.commit()
#media_file.youtube_url = yt_url
media_file.update_record(youtube_url=new_yt_url)
db.commit()

print(f"Fixed {yt_urls_fixed_count} out of {media_files_count} youtube urls.")
return
Expand Down

0 comments on commit b41a149

Please sign in to comment.