Jump to content

Web client to remember "Tab"


Vidman

Recommended Posts

  • 1 month later...
Diedrich

Agreed. I really dislike the current default url links. I don't care about "suggested", I want to go directly to my list of shows. Same thing for Movies; I want to go to my list of movies and not what was added latest.

 

If you don't want to change the code, would you at least identify which html, CSS, or XML file these links are in, please.

  • Like 6
Link to comment
Share on other sites

  • 7 months later...
emby.ch

You can change this manually and it's very easy.

 

>> Note, make sure you have a backup off your system.

 

1. go to your ..\dashboard-ui\scripts\ directory.

2. make a copy from "librarybrowser.js" for a backup

3. now open "librarybrowser.js" and search for the row 490

4. change the value from "return 'moviesrecommended.html?topParentId=' + item.Id;" to "return 'movies.html?topParentId=' + item.Id;"

5. click save and save the file

6. delete the browsers cache and cookies

7. Login and enjoy!

 

 

PS: We have made many changes in our WebClient. If anyone would like to have a look what we made (still in build), go to http://stream.ink and type in the Username "preview" with the password "preview" like blue sliders or a new User-Hovermenu.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Code must have changed in the last three months, because that value doesn't exist in that file any more. Librarybrowser.js has this 

if (item.SongCount) {

as line 490 

 

a search of the JS reveals that moviesrecommended.html isn't present.

 

How do can users chose what page to land on when they click on a library source? At the moment, it seems that if you click on your media, it should go to media. Not a suggestion of media.

Link to comment
Share on other sites

In librarybrowser.js:

 

MOVIES VIEW (search for if (context != 'folders') {

if (item.CollectionType == 'movies') {

Beneath this line you will see the default Suggestions

return 'movies.html?topParentId=' + item.Id; 
 

Change to "Movies" tab view

return 'movies.html?tab=1&topParentId=' + item.Id; 
 

Change to "Trailers" tab view

return 'movies.html?tab=2&topParentId=' + item.Id; 
Change to "Collections" tab view
return 'movies.html?tab=3&topParentId=' + item.Id; 
 

Change to "Genres" tab view

return 'movies.html?tab=4&topParentId=' + item.Id; 
 

Change to "People" tab view

return 'movies.html?tab=5&topParentId=' + item.Id; 
 

Change to "Studios" tab view

return 'movies.html?tab=6&topParentId=' + item.Id; 
Edited by Guy
  • Like 2
Link to comment
Share on other sites

 

In librarybrowser.js:

 

MOVIES VIEW (search for if (context != 'folders') 

 

 

This is it, right here!

 

Folks, TV-Shows is just a few lines below that, and you can change it to 

{
                    return 'tvshows.html?topParentId=' + item.Id;
                }

THANK YOU GUY! You've been a great help *cough* come on devs *cough*

  • Like 1
Link to comment
Share on other sites

  • 3 months later...
Diedrich

Because the devs believe it 'should' show the things you would most likely to want to access

Then it should be a setting, (read option) in the settings.
  • Like 2
Link to comment
Share on other sites

Koleckai Silvestri

Controlling default, or even better all the tabs, is something that I have been hoping would be implemented for a long time. Not a fan of "Suggested" either simply because it has the wrong name.

  • Like 1
Link to comment
Share on other sites

 

In librarybrowser.js:

 

MOVIES VIEW (search for if (context != 'folders') {

if (item.CollectionType == 'movies') {

Beneath this line you will see the default Suggestions

return 'movies.html?topParentId=' + item.Id; 
 

Change to "Movies" tab view

return 'movies.html?tab=1&topParentId=' + item.Id; 
 

Change to "Trailers" tab view

return 'movies.html?tab=2&topParentId=' + item.Id; 
Change to "Collections" tab view
return 'movies.html?tab=3&topParentId=' + item.Id; 
 

Change to "Genres" tab view

return 'movies.html?tab=4&topParentId=' + item.Id; 
 

Change to "People" tab view

return 'movies.html?tab=5&topParentId=' + item.Id; 
 

Change to "Studios" tab view

return 'movies.html?tab=6&topParentId=' + item.Id; 

 

 

What do you mean? I don't find any "Suggestions" here. Only "Movies", "Tv Shoes" etc.. What am I to change here?

Link to comment
Share on other sites

Koleckai Silvestri

You don't really want to edit that file. Every time there is a server update, the change will be undone and you will have to redo it. The best way is to get the Settings and interface to change to support this.

Link to comment
Share on other sites

Deathsquirrel

It would be fantastic if the server remembered this on a per user basis and the clients could query the property to do the same.

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 2 months later...
Diedrich

Any progress on this? It was requested September, 2014. Starting on a particular tab should persist through logout.

Link to comment
Share on other sites

  • 2 months later...
  • 4 weeks later...
Magic815

+1 for this change as well. (Looks like the first post is up to 33 likes now).

 

I'm two days into using Emby, and this is the first sore spot that sticks out to me. Default landing tab for Movies and TV Shows should be configurable by the user. To take it a step further, I'd recommend allowing all tabs to be user configurable. Meaning for both Movies and TV Shows, a user should be able to turn on/off each tab, reorder the tabs, and select a default landing tab.

 

Any comments from developers on if they think this is a good idea? Do they see themselves getting around to this in the near future?

Edited by Magic815
  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...