Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcery refactored master branch #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sourcery-ai[bot]
Copy link

@sourcery-ai sourcery-ai bot commented Oct 27, 2023

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from larsenv October 27, 2023 16:16
Comment on lines -25 to +27
print("File" + str(i) + "=" + "http://riitube.rc24.xyz/video/wii/?q=" + entry["videoId"])
print("Title" + str(i) + "=" + entry["title"])
print("Length" + str(i) + "=" + str(entry["lengthSeconds"]))
print(f"File{str(i)}=http://riitube.rc24.xyz/video/wii/?q=" + entry["videoId"])
print(f"Title{str(i)}=" + entry["title"])
print(f"Length{str(i)}=" + str(entry["lengthSeconds"]))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 25-27 refactored with the following changes:

Comment on lines -15 to +22
i = 1

for entry in api:
print("File" + str(i) + "=" + "http://riitube.rc24.xyz/video/wii/?q=" + entry["id"] + "&site=dailymotion".replace("https://dailymotion.com/", ""))
print("Title" + str(i) + "=" + entry["title"])
print("Length" + str(i) + "=" + str(0))

i += 1
for i, entry in enumerate(api, start=1):
print(
f"File{str(i)}=http://riitube.rc24.xyz/video/wii/?q="
+ entry["id"]
+ "&site=dailymotion".replace("https://dailymotion.com/", "")
)
print(f"Title{str(i)}=" + entry["title"])
print(f"Length{str(i)}=0")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 15-22 refactored with the following changes:

Comment on lines -31 to +36
i = 1

for entry in playlist:
print("File" + str(i) + "=" + "http://riitube.rc24.xyz/video/wii/?q=" + urllib.parse.quote(playlist[entry]) + "&site=iptv")
print("Title" + str(i) + "=" + entry.decode())
print("Length" + str(i) + "=" + "9999999")

i += 1
for i, (entry, value) in enumerate(playlist.items(), start=1):
print(
f"File{str(i)}=http://riitube.rc24.xyz/video/wii/?q={urllib.parse.quote(value)}&site=iptv"
)
print(f"Title{str(i)}={entry.decode()}")
print(f"Length{str(i)}=9999999")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 31-38 refactored with the following changes:

Comment on lines -19 to +26
i = 1

for entry in api:
print("File" + str(i) + "=" + "http://riitube.rc24.xyz/video/wii/?q=" + entry["link"].replace("https://vimeo.com/", "") + "&site=vimeo")
print("Title" + str(i) + "=" + entry["name"])
print("Length" + str(i) + "=" + str(entry["duration"]))

i += 1
for i, entry in enumerate(api, start=1):
print(
f"File{str(i)}=http://riitube.rc24.xyz/video/wii/?q="
+ entry["link"].replace("https://vimeo.com/", "")
+ "&site=vimeo"
)
print(f"Title{str(i)}=" + entry["name"])
print(f"Length{str(i)}=" + str(entry["duration"]))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 19-26 refactored with the following changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants