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

Added comments disabled functionallity #6483

Merged
merged 3 commits into from
Jul 17, 2021

Conversation

litetex
Copy link
Member

@litetex litetex commented Jun 13, 2021

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

Currently NewPipe shows an error when the comments are disabled → #5769 / TeamNewPipe/NewPipeExtractor#577

Adds a "Comments are disabled" line under the "No comments" area when the comments are disabled
(click to show demo)

grafik

For testing:
SFW Video with disabled comments: https://m.youtube.com/watch?v=MhReKn8STX8

Fixes the following issue(s)

Relies on the following changes

APK testing

On the website the APK can be found by going to the "Checks" tab below the title and then on "artifacts" on the right.

Due diligence

@triallax triallax added bug Issue is related to a bug youtube Service, https://www.youtube.com/ labels Jun 13, 2021
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

This also looks good. Doesn't the empty view ("Nothing here but crickets") appear, though, when there are no comments? I didn't see any code disabling it.

@litetex
Copy link
Member Author

litetex commented Jun 16, 2021

@Stypox
No, there's always just the

(╯°□°)╯ 
No comments

there when a video has 0 comments (but no disabled comments):

Example video/Some random video I just found which had 0 comments:
https://www.youtube.com/watch?v=n5F-8M73smg
grafik

Looks like that text was explicitly set here:

<LinearLayout
android:id="@+id/empty_state_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:orientation="vertical"
android:paddingTop="85dp"
android:visibility="gone"
tools:visibility="visible">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="10dp"
android:fontFamily="monospace"
android:text="(╯°-°)╯"
android:textSize="35sp"
tools:ignore="HardcodedText,UnusedAttribute" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/empty_view_no_comments"
android:textSize="24sp" />

That's all I could find.
I don't know what you mean exactly, so it's probably better if you look at it for yourself.

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Adds a "Comments are disabled" line under the "No comments" area when the comments are disabled

I'm dumb and didn't properly read the PR description... Your code does exactly what you explain. Ignore my above complaint, sorry

app/src/main/res/layout/fragment_comments.xml Outdated Show resolved Hide resolved
litetex added a commit to litetex/NewPipe that referenced this pull request Jun 19, 2021
litetex added a commit to litetex/NewPipe that referenced this pull request Jun 19, 2021
@litetex litetex force-pushed the addDisabledComments branch from b5b131a to a0af618 Compare June 19, 2021 13:04
litetex added a commit to litetex/NewPipe that referenced this pull request Jun 20, 2021
@litetex litetex force-pushed the addDisabledComments branch from a0af618 to cf8a141 Compare June 20, 2021 18:30
litetex added a commit to litetex/NewPipe that referenced this pull request Jun 23, 2021
litetex added a commit to litetex/NewPipe that referenced this pull request Jun 27, 2021
@litetex litetex force-pushed the addDisabledComments branch from cf8a141 to bc11b57 Compare June 27, 2021 12:46
Stypox
Stypox previously approved these changes Jul 5, 2021
litetex added a commit to litetex/NewPipe that referenced this pull request Jul 6, 2021
@litetex litetex force-pushed the addDisabledComments branch from bc11b57 to d361164 Compare July 6, 2021 19:17
litetex added a commit to litetex/NewPipe that referenced this pull request Jul 6, 2021
Stypox
Stypox previously approved these changes Jul 7, 2021
Stypox pushed a commit to litetex/NewPipe that referenced this pull request Jul 17, 2021
@Stypox Stypox force-pushed the addDisabledComments branch from d361164 to b12e49a Compare July 17, 2021 11:12
@Stypox Stypox force-pushed the addDisabledComments branch from b12e49a to 36c198f Compare July 17, 2021 11:15
@Stypox Stypox merged commit e7d5011 into TeamNewPipe:dev Jul 17, 2021
@litetex litetex deleted the addDisabledComments branch July 17, 2021 14:35
@opusforlife2
Copy link
Collaborator

@litetex Could you check if this PR caused #6792 (comment)?

@Stypox
Copy link
Member

Stypox commented Aug 1, 2021

@opusforlife2 by looking at the code it shouldn't: no preferences have been touched.

@opusforlife2
Copy link
Collaborator

@Stypox Nevermind. I'm a dum-dum. I must have enabled comments in the release APK to test something and happened to export database then. 🤦

spvkgn pushed a commit to spvkgn/NewPipe that referenced this pull request Aug 4, 2021
This was referenced Aug 4, 2021
@AudricV AudricV mentioned this pull request Aug 28, 2021
4 tasks
ShareASmile added a commit to ShareASmile/FoxPipe that referenced this pull request Jun 14, 2024
…s of 15-01-2024 into pre-unified-legacy

This is a fork of TeamNewPipe/NewPipe-legacy that I have been patching for a few months now. There is no commit history as this has been a personal project up until today.

Pulled in a major chunk of related commits for NewPipe Preunified from upstream TeamNewPipe/NewPipe repository:
1. Update NewPipe extractor to fetch likes count Fix TeamNewPipe/NewPipe#10624
2. Access Background Player Queue from Main menu by HybridAU
TeamNewPipe/NewPipe#8419
3. Added Bandcamp Music Support Into NewPipeLegacy, Improve Bandcamp intent filters
TeamNewPipe/NewPipe#3741
TeamNewPipe/NewPipe#6373
TeamNewPipe/NewPipe#6456
4. Disable sending metrics to Google when using Android System WebView
TeamNewPipe/NewPipe#5337
5. Add basic resize functionality
TeamNewPipe/NewPipe#3948
6. [media.ccc.de] Add recent & live stream kiosk
TeamNewPipe/NewPipe#5251
TeamNewPipe/NewPipe#5286
[media.ccc.de] Fix service color
TeamNewPipe/NewPipe#5258
7. Ability to see Pinned Comment added by dkramer95
TeamNewPipe/NewPipe#7577
8. Clicking on Title In Background Player Should Open Video Details
TeamNewPipe/NewPipe#3808 by https://github.com/budde25
9. Added Swipe to Refresh for Channels New Videos in Subscription Feed
TeamNewPipe/NewPipe#4893
10. [peertube] implement sepia search
TeamNewPipe/NewPipe#5257
11. Allow installation on external storage by triallax in
TeamNewPipe/NewPipe#6037
12. Change UA to privacy.resistFingerprinting
TeamNewPipe/NewPipe#5649 by FireMasterK
13. Add formatting removal on paste for search TeamNewPipe/NewPipe#5912 by imericxu
14. Remember Last Selected Media Type For Downloads
TeamNewPipe/NewPipe#4038 by vmazoyer
15. Improve search suggestion experience when remote ones can't be fetched
TeamNewPipe/NewPipe#4029 by StyPox
16. Fix Download Button Not Visible After Playing Live Stream, Fix video detail controls visibility set inconsistently
Add this commit by StyPox
TeamNewPipe/NewPipe@dbb86d2 from
TeamNewPipe/NewPipe#4362
17. [Background Player] Fix very small thumbnails in Video Detail Page by TobiGR in
TeamNewPipe/NewPipe#5818
18. Add Always Expand Description In Appearance Settings
TeamNewPipe/NewPipe#2998 by B0pol
(Related) entries from search history Increased from 25 to 80 and Search Suggestions Entries from 3 to 60 commit copied from
TeamNewPipe/NewPipe#2666 thanks to ergor
20. Fixes snackbar error on disabled likes count
Fixes TeamNewPipe/NewPipe#7405 by TeamNewPipe/NewPipeExtractor#753
21. Fixed player controls not hiding after replay & Bluetooth headset button by Alexander--
TeamNewPipe/NewPipe#3547
22. update user agent in Downloader to firefox latest ESR 115 by Nickoriginal
TeamNewPipe/NewPipe#8269
23. Changed Dark Theme Colors To Darker Variant by sauravrao637
TeamNewPipe/NewPipe#6244
24. Support for PeerTube Short Links
TeamNewPipe/NewPipe#7353
25. Handle URLs for YouTube Shorts
TeamNewPipe/NewPipe#7181
26. Fix playback speed not being updated in Background Player & Fix TeamNewPipe/NewPipe#8058
Fixed Combinedly by TeamNewPipe/NewPipe#6421 by Tobius
and by seanzzy in
TeamNewPipe/NewPipe#8244
27. Added comments disabled functionallity by litetex in
TeamNewPipe/NewPipe#6483
28. [media.ccc.de] Fix service color
TeamNewPipe/NewPipe#5258
29. Ignore ContentNotSupportedException caused by Bandcamp fan pages
TeamNewPipe/NewPipeExtractor#1033
30. Crash when rotating device on unsupported channels
TeamNewPipe/NewPipe#6696
31. Correct Gigaget's license from GPLv2 to GPLv3
TeamNewPipe/NewPipe#4892
32. Add basic resize functionality [Samsung Dex Now Supported]
TeamNewPipe/NewPipe#3948
33. [Security] Update ktlint to 0.40.0
34. Fix security vulnerability update checkstyle / guava
35. Update ExoPlayer from 2.11.6 to 2.11.8
36. Update checkstyle, OkHttp, use Kotlin JDK8 by TacoTheDank added this commit
TeamNewPipe/NewPipe@79e2bb3
from TeamNewPipe/NewPipe#3909
37. Use user agent of DownloaderImpl also in ReCapthaActivity
TeamNewPipe/NewPipe#5215
38. Fix ACRA bug reports not containing stack trace, Do not init ACRA if inside its own process
TeamNewPipe/NewPipe#3982
39. Remove deprecated calls to set Sender class to ACRA
TeamNewPipe/NewPipe#3982
40.Use SubtitlesStream#getUrl instead of getURL
TeamNewPipe/NewPipe#4120
41. Remove pbj=1 parameter from YouYube urls in recaptcha activity
TeamNewPipe/NewPipe#5208
42. Set notification style in Android 11 to MediaStyle Thanks to XiangRongLin for Limted Support for preunified refer to this commit
XiangRongLin@aa55a09
43. Click on title in background player opens video details
TeamNewPipe/NewPipe#3808
44. Add 2K and 4K to the options list for default resolution
 TeamNewPipe/NewPipe#2968
45. Fix crash when opening video in local playlist tab
Fixes TeamNewPipe/NewPipe#3887
by TeamNewPipe/NewPipe#3892 by wb9688
46.  Handle ContentNotSupportedException
TeamNewPipe/NewPipe#3300
47. [YouTube] Improve download speed by Theta-dev
TeamNewPipe/NewPipe#9948
48. Disable commenter image when disabling thumbnails loading by 4D17Y4
Fixes TeamNewPipe/NewPipe#4205
TeamNewPipe/NewPipe#4350
49. Adapt opacity of popup close button to allow touches in other apps on Android >=11
Fixes TeamNewPipe/NewPipe#6770
TeamNewPipe/NewPipe#8279
50. Better error messages for SoundCloud and YouTube unavailable contents
TeamNewPipe/NewPipe#5385
51. Mitigating long buffering on initial video playback by using custom progress-load-interval in exoplayer,
Use 16 KiB as the default progressive load interval by karyogamy
TeamNewPipe/NewPipe#7919
52. Support for opening YouTube Live URLs
TeamNewPipe/NewPipe#9725

Co-Authored-By: Tobi <[email protected]>
Co-Authored-By: Stypox <[email protected]>
Co-Authored-By: Audric V. <[email protected]>
Co-Authored-By: bopol <[email protected]>
Co-Authored-By: Isira Seneviratne <[email protected]>
Co-Authored-By: opusforlife2 <[email protected]>
Co-Authored-By: fynngodau <[email protected]>
Co-Authored-By: David Kramer <[email protected]>
Co-Authored-By: Ethan Budd <[email protected]>
Co-Authored-By: triallax <[email protected]>
Co-Authored-By: Kavin <[email protected]>
Co-Authored-By: Eric Xu <[email protected]>
Co-Authored-By: Vincent Mazoyer <[email protected]>
Co-Authored-By: Erol Gorancic <[email protected]>
Co-Authored-By: Alexander-- <[email protected]>
Co-Authored-By: Saurav Rao <[email protected]>
Co-Authored-By: Nickoriginal <[email protected]>
Co-Authored-By: Ziyan Zhang <[email protected]>
Co-Authored-By: litetex <[email protected]>
Co-Authored-By: XiangRongLin <[email protected]>
Co-Authored-By: wb9688 <[email protected]>
Co-Authored-By: Okan25 <[email protected]>
Co-Authored-By: Michael Van Delft <[email protected]>
Co-Authored-By: Taco <[email protected]>
Co-Authored-By: ThetaDev <[email protected]>
Co-Authored-By: Aditya-Srivastav <[email protected]>
Co-Authored-By: John Zhen Mo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug youtube Service, https://www.youtube.com/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants