Skip to content

add Kiosk support#27

Merged
theScrabi merged 12 commits intomasterfrom
kiosk
Sep 11, 2017
Merged

add Kiosk support#27
theScrabi merged 12 commits intomasterfrom
kiosk

Conversation

@theScrabi
Copy link
Copy Markdown
Member

Add "Kiosk" function

A kiosk can be described as a page that provides content that you don't have to search for, like "top 50" or "trending".

This Pull Request:

  • Supports Multiple Kiosks for one Service
  • Add "trending" for Youtube
  • Add "Top 50" and "New & Hot" for Soundcloud

The Idea is that with this we can finally get rid of the blank startpage of NewPipe.

@mauriciocolli
Copy link
Copy Markdown
Contributor

I had a quick look at it and there's some points to consider:

  • Hardcoded type will make it hard to translate it
  • Isn't in sync with the latest codebase (using old Json dependency, for example)

@theScrabi
Copy link
Copy Markdown
Member Author

We should fix this asap.

@theScrabi theScrabi added ASAP Issue needs to be fixed as soon as possible and removed ASAP Issue needs to be fixed as soon as possible labels Sep 8, 2017
@theScrabi
Copy link
Copy Markdown
Member Author

@mauriciocolli @wb9688 I resolved the collision.

Use content country if supported by SoundCloud
@theScrabi theScrabi merged commit 0c632e1 into master Sep 11, 2017
@theScrabi theScrabi deleted the kiosk branch September 11, 2017 14:27
@ghost
Copy link
Copy Markdown

ghost commented Sep 11, 2017 via email

@mauriciocolli
Copy link
Copy Markdown
Contributor

There are some work to do here, but ok...

PS: I think you should have squashed these commits, they messed with the commit history with some useless commits. (instead of clicking Merge pull request use the Squash and merge option)

public String getUploaderName() {
return searchResult.getObject("user").getString("username");
//return searchResult.getObject("user").getString("username");
return searchResult.getObject("track").getObject("user").getString("username");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This change didn't considered that both charts and search (and others) use it, therefore, breaking some things.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fixed in e9156ee.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

thanks :)

@theScrabi
Copy link
Copy Markdown
Member Author

The type should be there to identify the different kiosks (like an Id) it is not there to be translated. We should do the translation on the client side, because otherwise wed have to find a way to make the extractor translatable.

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.

3 participants