-
-
Notifications
You must be signed in to change notification settings - Fork 51
Add segment skip ability #368
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
Conversation
mcarlton00
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall very well done. The logging isn't required and this will definitely be merged before the next big release, but it'll be a big help should weirdness ever occur.
Sorry for the delay in reviewing, I had to get segments set up on my server first and was having some trouble with it.
|
|
||
| msgctxt "#30666" | ||
| msgid "Segment Skipper" | ||
| msgstr "Passer les segments" | ||
|
|
||
| msgctxt "#30667" | ||
| msgid "Action to take" | ||
| msgstr "Action" | ||
|
|
||
| msgctxt "#30668" | ||
| msgid "Start Offset (seconds)" | ||
| msgstr "Décalage début de segment (secondes)" | ||
|
|
||
| msgctxt "#30669" | ||
| msgid "End Offset (seconds)" | ||
| msgstr "Décalage fin de segment (secondes)" | ||
|
|
||
| msgctxt "#30670" | ||
| msgid "Intro Skipper" | ||
| msgstr "Introductions" | ||
|
|
||
| msgctxt "#30671" | ||
| msgid "Credit Skipper" | ||
| msgstr "Crédits" | ||
|
|
||
| msgctxt "#30672" | ||
| msgid "Skip" | ||
| msgstr "Passer" | ||
|
|
||
| msgctxt "#30673" | ||
| msgid "Ask" | ||
| msgstr "Passer" | ||
|
|
||
| msgctxt "#30674" | ||
| msgid "Do Nothing" | ||
| msgstr "Ne rien faire" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally speaking, we only update the translations for the main language (english) through git and handle the rest through https://translate.jellyfin.org/projects/jellycon/jellycon/, but that's not a big deal and we can manage that on the backend this time. Just a heads up for future PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright I did not know that!
I reverted back the changes I made in this file to handle it the proper way.
| log = LazyLogger(__name__) | ||
|
|
||
|
|
||
| class IntroSkipperService(threading.Thread): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a few log statements in these functions for debugging purposes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now added logs on several places. Let me know if you feel like it needs more.
Add logs Add support for recap + preview + commercial
|
I have refactored the code to make it more generic and to make it able to handle previews, recaps and commercials as well to keep it in line with other apps (though I cannot test it because I do not have medias with such segments). Let me know if you have other feedbacks. Edit: I now do have a show with recaps and I can confirm it works well. |
Hello,
For my personal use I've implemented segment skip ability on jellycon.
This is my first time developping in python (let alone kodi extensions) so I probably did not take the right approach though it runs fine on my shield.
Feel free to make feedbacks.