Skip to content

Conversation

@6AA4FD
Copy link

@6AA4FD 6AA4FD commented Dec 21, 2018

i've restructured the openInMpv function to make it more readable, and added detection for what kind of twitch page you're on so you can still use the browser.

quinn added 3 commits December 20, 2018 15:32
- disabled funnyordie because it's not working
- took video namespace off funnyordie because it doesn't reflect site
structure
- added logic to determine if a twitch candidate is a stream or not
Added setting to choose whether it's okay to close the main tab if it
gets opened in mpv
@6AA4FD 6AA4FD changed the title disable two handlers, improve twitch disable two handlers, improve twitch, add mainclose setting Dec 21, 2018
@6AA4FD
Copy link
Author

6AA4FD commented Dec 21, 2018

i've also added a setting to toggle between leaving the tab to be opened present if it's focused, and closing the tab regardless

Copy link
Owner

@vayan vayan left a comment

Choose a reason for hiding this comment

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

Hello! Thanks for the pull request!!

I just had some small comments, and if you could keep the original indent it'll be nice too 😄

I'll take some time to test it out and merge it if it's good.

Thanks again 🙏

"*://*.streamable.com/*",
"*://*.liveleak.com/view*",
// "*://*.vid.me/*", // vidme is suspended
// "*://*.funnyordie.com/*", // youtube-dl returns unsupported for these
Copy link
Owner

Choose a reason for hiding this comment

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

Right! you can remove them then no need to comment


function openInMpv(request) {
var lockedTabIndex = tabsLock.lastIndexOf(request.tabId);
console.log("mainClose:", settings.mainClose);
Copy link
Owner

Choose a reason for hiding this comment

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

We can remove all the debug log

document.querySelector("#args").value = result.args || "--pause --ytdl-format='bestvideo[height<=?1080]+bestaudio/best'";
}
function setMainClose(result) {
// console.log("mainclose is", result.mainClose);
Copy link
Owner

Choose a reason for hiding this comment

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

You can remove this

@6AA4FD
Copy link
Author

6AA4FD commented Dec 21, 2018

alright, i've removed all the debug stuff, the lines for funnyordie and vidme, and changed the align level to 2 spaces

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.

2 participants