Jump to content

A tool for tagging Emby content


VicMoore

Recommended Posts

2 minutes ago, VicMoore said:

Think about how you would like for it to work on your phone.  I can always add in special code.

Vic

That would be cool. I'll think about it.

Link to comment
Share on other sites

3 minutes ago, VicMoore said:

CBers,  OK I will do it today. I will also fix the refresh problem.

Vic

Thanks.

No rush for this, only when you have time.

It's a nice to have eventually, not an immediate necessity.
 

Link to comment
Share on other sites

CBers,  OK I fixed it the way you suggested. Now you get to test it.  Hopefully it didn't break anything else 🙂 

Also, you no longer need to add "HTTP://" to your IP address. It's added automatically if you leave it off.

Vic

 

EmbyTagApp17.html

  • Thanks 1
Link to comment
Share on other sites

2 minutes ago, VicMoore said:

CBers,  OK I fixed it the way you suggested. Now you get to test it.  Hopefully it didn't break anything else 🙂 

Also, you no longer need to add "HTTP://" to your IP address. It's added automatically if you leave it off.

Vic

 

EmbyTagApp17.html 169.37 kB · 0 downloads

Doesn't work, as I use https for my server.

The line here needs amending to check for absence of http and https, as I am getting http://https://server:port in the filed now.
 

if(!temp.startsWith("http://")) embyServerIp = "http://"+embyServerIp;

 

  • Thanks 1
Link to comment
Share on other sites

Good morning Kanipek...

I changed the code to use the actual channel numbers defined for channels.  Test it out and see if it works OK.

Yarafie, please also check to make sure everything works for you also.

Does anyone want additional info included with the channels?

Vic

EmbyTagApp18.html

Link to comment
Share on other sites

Having an issue here, probably doing something wrong.

I am attempting to remove and add tags for Live TV.

i can get all the channels displayed, but when I add filter for 'US Local', and apply, I am still seeing all the channels that have other tags

Link to comment
Share on other sites

Hello gillmacca01...

I probably did something wrong. I will look into this right now. My big problem is that I don't have any IPTV.  I can only test with virtual TV.

Vic

Link to comment
Share on other sites

44 minutes ago, VicMoore said:

Test it out and see if it works OK

Works exactly as I would expect!  Thank You!

Link to comment
Share on other sites

Gillmacca01...  The problem is that Emby doesn't support filtering channels on tags.  I have not had time to disable the filter items that don't apply to the context that the filtering is being applied.  I will look further into the API with Swagger and try to do what you are requesting.  It will be a good learning exercise 🙂

Vic

  • Like 1
Link to comment
Share on other sites

3 minutes ago, VicMoore said:

Emby doesn't support filtering channels on tags

I'm not sure what you are referring to here - the API?

In EPG that you get within Emby you can filter by tags - that is what makes this tool so helpful! Just FYI. Love it.

Link to comment
Share on other sites

Kanipek, I am referring to using the Emby API to do the filtering/sorting within the server (not the client).  I send a "GET" to the server requesting the channels and with that "get" I specify how I want the data filtered. At present the API ignores my request to filter the channels based on tags.  If you look at the API, Tags are missing. Of course, I am new to this API and could be overlooking the obvious. This is why I said I would study the API at a deeper level. I appreciate your comments and all of you have made this code so much better. I would appreciate any correction and pointers to how to use the API to filter channels. 

Vic

Link to comment
Share on other sites

1 hour ago, VicMoore said:

Hello gillmacca01...

I probably did something wrong. I will look into this right now. My big problem is that I don't have any IPTV.  I can only test with virtual TV.

Vic

Hi vic

If you want to get some Live TV which is legal and free you can visit the following git sites.

For Live TV

https://github.com/iptv-org/iptv

For corresponding  EPG

https://github.com/iptv-org/epg

There are many to choose from to enjoy and can also help your testing :)

Link to comment
Share on other sites

1 hour ago, VicMoore said:

Good morning Kanipek...

I changed the code to use the actual channel numbers defined for channels.  Test it out and see if it works OK.

Yarafie, please also check to make sure everything works for you also.

Does anyone want additional info included with the channels?

Vic

EmbyTagApp18.html 169.13 kB · 3 downloads

Works right didn't really notice channel numbers until you pointed it out V18 is more correct since you are using the channel number from channel metadata I assume.

 

Screenshot_20211216-190918_Chrome.png

Screenshot_20211216-190842_Chrome.png

Link to comment
Share on other sites

2 hours ago, VicMoore said:

At present the API ignores my request to filter the channels based on tags.

This will be very useful if you get it worked out.

Link to comment
Share on other sites

I added to the channels display a dropdown box with all of the channel tags. If you select one of these tags the channels will be filtered with that tag. Give it try. But, precede carefully because it has not been tested. Let me know if it works as expected.

Vic

EmbyTagApp19.html

  • Like 1
Link to comment
Share on other sites

1 hour ago, VicMoore said:

Let me know if it works as expected.

Works just as expected. Well done!

Link to comment
Share on other sites

4 hours ago, VicMoore said:

I added to the channels display a dropdown box with all of the channel tags. If you select one of these tags the channels will be filtered with that tag. Give it try. But, precede carefully because it has not been tested. Let me know if it works as expected.

Vic

EmbyTagApp19.html 171.27 kB · 2 downloads

Quick testing it works filter on tags.

Also when I applied the general filters sort by and sort direction it honors that keeping the filter by tag. Will do more extensive testing later.

Thanks 

Link to comment
Share on other sites

Works great on Live TV now. Managed to change the tags of over 100 channels in one go.

Thanks

 

  • Like 1
Link to comment
Share on other sites

Yarafie took the time to explain IPTV to me. I now understand the advantages of tagging channels. I can also do more testing.

Vic

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

On 12/15/2021 at 1:59 PM, VicMoore said:

Hi Neik...  Yes, I will add the filter that you want if I can figure out how to do it.  So far, I have not been able to get the subtitle languages from the API.  I will look harder 🙂

Vic

Hi Vic,

just had a look at the swagger API and found the endpoint "/Items/{Id}/PlaybackInfo" within "MediaInfoService" which gives you an json-output like this:

        {
          "Codec": "dts",
          "Language": "eng",
          "TimeBase": "1/1000",
          "DisplayTitle": "English DTS 5.1",
          "DisplayLanguage": "English",
          "IsInterlaced": false,
          "ChannelLayout": "5.1",
          "BitRate": 1536000,
          "Channels": 6,
          "SampleRate": 48000,
          "IsDefault": false,
          "IsForced": false,
          "Profile": "DTS",
          "Type": "Audio",
          "Index": 2,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "Protocol": "File",
          "AttachmentSize": 0
        },
        {
          "Codec": "DVDSUB",
          "Language": "ger",
          "TimeBase": "1/1000",
          "DisplayTitle": "German (DVDSUB)",
          "DisplayLanguage": "German",
          "IsInterlaced": false,
          "IsDefault": false,
          "IsForced": false,
          "Height": 1080,
          "Width": 1920,
          "Type": "Subtitle",
          "Index": 3,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "Protocol": "File",
          "AttachmentSize": 0

Maybe helpful for the audio/sub language filter?

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...