-
Notifications
You must be signed in to change notification settings - Fork 886
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
Shorts tab on channel page #3093
Shorts tab on channel page #3093
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Head branch was pushed to by a user without write access
69c3912
to
db840bc
Compare
This PR doesn't actually implement the feature request that you mention in the Related issue section. As mentioned in #2476 (comment) that feature request is actually for the infinitely scrolling shorts tab, although there is an unrelated discussion towards the end of that thread that mentions the shorts tab on the channels page. |
@@ -393,7 +393,7 @@ export default Vue.extend({ | |||
this.publishedText = this.data.publishedText | |||
} | |||
|
|||
if (typeof (this.data.publishedText) !== 'undefined' && this.data.publishedText !== null && !this.isLive) { | |||
if ('publishedText' in this.data && !!this.data.publishedText && !this.isLive) { |
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.
This change can be simplified to this:
if ('publishedText' in this.data && !!this.data.publishedText && !this.isLive) { | |
if (this.data.publishedText && !this.isLive) { |
Hi, So, in issue #2476 there is quite a bit going on.
I see content for several stories in there:
How about this for a plan of action: we use this PR as an MVP to get shorts, at all, out the door(item 1 on the list)? I can go and create separate stories for the rest, and flesh out the details plus input. Let me know your thoughts, everyone. |
The only thing I edited was the description of this pull request, to remove the reference to a feature request for a different feature (See the screenshot below). Why am I so sure that the original feature request is unrelated to the shorts tab on the channel page? This pull request only implements the discussion that is going on below that feature request, not the actual feature request itself. I removed your "implements #number" text, so the feature request stays open until it is implemented. I'm sorry that my words and actions came across as attacks, that wasn't my intention. My intention was just to point out that the feature that this pull request implements, is not the one in the feature request that you linked, so I removed your link to it. This pull request is completely fine (well a few code changes are needed before it gets merged, like fixing the code conflicts) as a pull request that implements the shorts tab on the channel page. |
Hi absidue Forgive me if the verbosity of my last post made it seem like I was being defensive. I did not interpret what you wrote as combative. There is much to this project which I am still learning: what code does what, who is active and coding, and who is keeping track of what. Because of that I decided to be very detailed about what I observe and am thinking. Also, I am excited and charged up to help out, so there is that energy. What you are saying about Youtube splitting pieces versus the creation of the feature request makes perfect sense. I totally agree. I will clean up the code conflicts. There are two outstanding things I see where I need some advise:
After that, what is the review, test, and release process? |
Head branch was pushed to by a user without write access
db840bc
to
9966250
Compare
Head branch was pushed to by a user without write access
9966250
to
c7ebf22
Compare
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.
- You are missing a string for 'This channel does not currently have any shorts' in the en-US locale file. Other than that i18n looks good.
The translations for other languages are done through Weblate and if a translation is missing in a language, it will fallback to en-US 😄
- Pointing to the git branch should be fine for now (we'll be using YouTube.js in FreeTube's next release instead of yt-channel-info)
"Also, while the request mentioned the ability to hide shorts, I could find no such toggle. Perhaps I could add that on to this." sorry, I just didnt remember off the top of my head if that functionality was already implemented or not 😄 if you would like to add it, you can do it in a separate PR.
If you'd like to add the ability to load more shorts to this PR:
a continuation parameter can be added to the invidious call or you can call getChannelVideosMore with the shorts continuation
Let me know if you have any more questions. Thanks for opening a PR!
Head branch was pushed to by a user without write access
I updated and took all of @ChunkyProgrammer 's suggestions. It appears that additional shorts are automatically loading as I scroll down the page. Hopefully it works the same for you. The only outstanding issue I see is the conflict in
Thank you for creating this application. And, thank you for facilitating my contribution. |
Would you be able to resolve the merge conflict as well @KarateCowboy ? |
@ChunkyProgrammer Sure thing. It looks like I missed the part where you said it is OK to point to the git commit. @absidue Sure thing. To replicate the error, remove the extra conditional. Then subscribe to the channel Julia Stunts. Then go to that channel via "Channels > Julia Maggio". Then click the shorts tab. Then the Short "Devil Hunters@WholeWheatPete @itsKingChris & @StellaChuu". |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Head branch was pushed to by a user without write access
@KarateCowboy could u please upload the screenshots direct on GitHub instead of Dropbox |
Done |
Noticed that the view count is off |
Could you please add the new tab to the tabInfoValues array on the channel page. That array is used so you can cycle the focus through the tabs by pressing the left and right arrow keys. |
The current plan: |
Understood. I will keep an eye on that and then update accordingly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@KarateCowboy #3143 is merged :) |
I'll get to it this weekend! |
umm this weekend @KarateCowboy ? |
Sorry. I looked at it a little last weekend but had my time cut short because I started a new job. This weekend, however, I have more time. Even if it's my birthday. :D
Mar 11, 2023 01:11:53 efb4f5ff-1298-471a-8973-3d47447115dc ***@***.***>:
…
@KarateCowboy[https://github.com/KarateCowboy] #3143[#3143] is merged :)
I'll get to it this weekend!
umm this weekend @KarateCowboy[https://github.com/KarateCowboy] ?
—
Reply to this email directly, view it on GitHub[#3093 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AACYFICI4RB2P44KJR65DS3W3QQTDANCNFSM6AAAAAAT7RTW3U].
You are receiving this because you were mentioned.[Tracking image][https://github.com/notifications/beacon/AACYFIHHSSISB5YJ3GHSQ43W3QQTDA5CNFSM6AAAAAAT7RTW3WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSXJ7HHU.gif]
|
@KarateCowboy feel free to use #3273 as an inspiration (it adds support for the live tab). |
pulled in latest. hacking away a little tonight |
Hi @KarateCowboy do you still plan on working on this? Note: invidious shorts should work once iv-org/invidious#3700 is merged |
Hey hey. Thanks for the bump. I'll hit it up over the holiday weekend. Sunday night |
Hi @KarateCowboy |
Closing, this is implemented in #3533 |
Add 'Shorts' tab to the Channel page
Pull Request Type
Description
Adds the Shorts tab for a channel to the Channel Page. Allows for playing via direct or invidious api
Screenshots
Before:
After:
Testing