NineWorlds / serenity-android

An Android client for the Plex and Emby Media Servers optimized for Television displays.
MIT License
178 stars 65 forks source link

Only see settings menu #5

Closed kieley closed 11 years ago

kieley commented 11 years ago

Trying to access server called media on 192.168.1.12. Using logitech revue. Web app works ok.

kingargyle commented 11 years ago

Scott, can you paste the output from:

http://192.168.1.12:32400/servers

Into the bug report, it will give me a little more information as it will contain the exact server version number as well.

kieley commented 11 years ago

Sorry thought I put this in there already. forgot to remove the html

Server name="Media" host="192.168.1.12" address="192.168.1.12" port="32400" machineIdentifier="9a3ee4fcd4492ce0e2ae268360b6a807f4adce0d" version="0.9.7.7-5ec3b53"/> Server name="PowerEdge" host="PowerEdge.local." address="192.168.1.99" port="32400" machineIdentifier="cb4ca5b2677dcc020963e2f7bb5e45688c846188" version="0.9.6.9.240-8fd9c6a"/>"

kieley commented 11 years ago

If it helps at all, I changed the IP to my old server, which has no files on it, and was able to get the TV shows menu.

kingargyle commented 11 years ago

Yeah that does help as it narrows down where the possible issue is. Can you provide me additional information around the following url (replace with your server ip address).

http://192.168.0.108:32400/library/sections

I need to know what the type values are listed as for the Directory entries. I have a feeling that this information was changed.

kingargyle commented 11 years ago

kieley I just setup on my Linux machine, server version 0.9.7.7-5ec3b53 and was able to get the Menu to popluate with out changes. So my guess at this point is that for some reason it is having problems opening a connection to your server from your gtv box. I'll continue to play around with things here and I'll probably add some more debugging info for when connections can't be made to the code to hopefully help us determine what is happening.

kingargyle commented 11 years ago

I've created a new apk that contains some additional debugging information it'll send to the screen when it runs into connection issues. It'll contain a bit of information that we can use, like the base URL it tried to connect to and what the is the reason it ran into an issue. If you want, you can pull it down and install it on your device and see if gives us any more information.

http://kingargyle.github.com/googletv/serenity/alpha/Serenity-0.5.1-SNAPSHOT.apk

pawdog commented 11 years ago
    <MediaContainer size="3" allowSync="0" identifier="com.plexapp.plugins.library" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1358284480" title1="Plex Library">
      <Directory art="/:/resources/movie-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/movie.png"      key="1" type="movie" title="Movies" agent="com.plexapp.agents.imdb" scanner="Plex Movie Scanner" language="en" uuid="c1742031-4ae4-4a6f-ac1d-e34e43a50670" updatedAt="1359422926" createdAt="1355741384">
          <Location path="D:\Bluray Rips"/>
          <Location path="N:\Movies 3TB"/>
          <Location path="R:\Blue Ray Rips 2"/>
         <Location path="L:\Blue Ray Rips 2"/>
         <Location path="P:\Movies 2TB"/>
      </Directory>
      <Directory art="/:/resources/artist-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/artist.png" key="6" type="artist" title="Music" agent="com.plexapp.agents.lastfm" scanner="Plex Music Scanner" language="en" uuid="f835c92f-cb18-4115-a4db-aa0f2182aa68" updatedAt="1357731474" createdAt="1357683982">
          <Location path="L:\Music"/>
          <Location path="D:\Music"/>
     </Directory>
      <Directory art="/:/resources/show-fanart.jpg" filters="1" refreshing="0" thumb="/:/resources/show.png" key="4" type="show" title="TV Shows" agent="com.plexapp.agents.thetvdb" scanner="Plex Series Scanner" language="en" uuid="00eb6c49-b82d-4b26-8279-3db8fa1ebd74" updatedAt="1359423075" createdAt="1355877883">
        <Location path="O:\Television Shows"/>
        <Location path="D:\Bluray Rips\Sons Of Anarchy"/>
        <Location path="L:\Television"/>
        <Location path="D:\Bluray Rips\Sons of Anarchy Season 3"/>
       <Location path="N:\TV"/>
     </Directory>
     </MediaContainer>
kingargyle commented 11 years ago

Thanks. This gives me what I need. My development/plex media server only contains One location entry so I wasn't handling the case where multiples could exist.

kingargyle commented 11 years ago

This is now fixed. If multiple locations exist in a Directory entry, the app no longer doesn't display the menu items. This will be in version 0.6.0 tonight.