INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: ChannelKey?  (Read 3762 times)

hoyt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 867
ChannelKey?
« on: November 22, 2015, 03:58:07 pm »

What does this number represent from MCWS?  For example, when I do this:

/MCWS/v1/Television/GetRecordingSchedule?RangeInHours=8

I get back something like this:

Code: [Select]
<Item Name="NumberRecordings">5</Item>
<Item Name="ProgKey0">1679130</Item>
<Item Name="ChannelKey0">1501917</Item>
<Item Name="RecordingID0">455455222</Item>
<Item Name="StartTime0">11/22/2015 9:59 am</Item>
<Item Name="Duration0">14459</Item>
<Item Name="ProgName0">Football</Item>
<Item Name="Description0">
Washington (4-5) at Carolina (9-0). Both of these teams are coming off season-best efforts as the Redskins gained 526 yards vs. the Saints while Carolina allowed just 242 vs. the Titans. Tight ends Jordan Reed (6 TDs) and Greg Olsen (5) are key targets.
</Item>
<Item Name="Status0">
Part of a subscription, but the recording has been canceled.
</Item>
<Item Name="TypeOfRecording0">Canceled</Item>
<Item Name="IsRecordingNow0">0</Item>

What is, or how do I look up, 1501917 to know that it's my channel named "2-1 FOX"?  Thanks!
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: ChannelKey?
« Reply #1 on: November 24, 2015, 08:17:12 am »

It is the database key for the channel.  You don't see this number in any displays of channels.
Logged
Yaobing Deng, JRiver Media Center

hoyt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 867
Re: ChannelKey?
« Reply #2 on: November 24, 2015, 02:25:59 pm »

It is the database key for the channel.  You don't see this number in any displays of channels.

Shoot...  Does that mean there's no way to get a listing of channels that are actively recording and translate it into a "pretty" channel name?

Thanks!
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: ChannelKey?
« Reply #3 on: November 24, 2015, 03:59:54 pm »

Shoot...  Does that mean there's no way to get a listing of channels that are actively recording and translate it into a "pretty" channel name?

Thanks!

I actually don't know if you will be able to get info on a file using MCWS, given the key of a file.  If you mean to just get the info visually as an end user, the answer is you have to wait until I add the info to Manage Channel window (hopefully soon).
Logged
Yaobing Deng, JRiver Media Center

hoyt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 867
Re: ChannelKey?
« Reply #4 on: November 24, 2015, 05:55:53 pm »

I actually don't know if you will be able to get info on a file using MCWS, given the key of a file.  If you mean to just get the info visually as an end user, the answer is you have to wait until I add the info to Manage Channel window (hopefully soon).

Well, I was hoping to use it to translate into a small interface where I could more easily manage recordings on my phone.  I find the use of a desktop as the only method to setup and check a tv recording a fairly large obstacle.  I was trying to at least get a view of what IS being recorded to limit the amount of times I have to check the Television sub-tree on a Windows PC.  For now I've just been polling the webservice to get an idea of the data, but I want to format it and thought somehow I'd be able to turn that number into something more understandable. 
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: ChannelKey?
« Reply #5 on: November 24, 2015, 06:25:19 pm »

I can add channel name in the returned info.
Logged
Yaobing Deng, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: ChannelKey?
« Reply #6 on: November 24, 2015, 06:51:49 pm »

You get information on a file this way (using the key):
http://localhost:52199/MCWS/v1/File/GetInfo?File=1
Logged
Matt Ashland, JRiver Media Center

hoyt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 867
Re: ChannelKey?
« Reply #7 on: November 25, 2015, 12:05:44 pm »

You get information on a file this way (using the key):
http://localhost:52199/MCWS/v1/File/GetInfo?File=1

That got me exactly what I was looking for:

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="MCWS - Files - 5252" PathSeparator="\">
<Item>
<Field Name="Key">1501917</Field>
<Field Name="Filename">TV Channel DTV 44 (2-1) (ATSC).tvlb</Field>
<Field Name="Name">2-1 Fox</Field>
<Field Name="Media Type">TV</Field>
<Field Name="Original Title">2-1 KTVU-HD</Field>
<Field Name="Date Imported">1441586471</Field>
<Field Name="Last Played">1446261938</Field>
<Field Name="Number Plays">9</Field>
<Field Name="File Type">tvlb</Field>
<Field Name="TV Channel">DTV 44 (2-1)</Field>
<Field Name="TV Channel Number">21</Field>
<Field Name="TV Tuner Input Type">ATSC</Field>
<Field Name="TV XMLTV ID">I2.1.28458070.microsoft.com</Field>
</Item>
</MPL>

Thanks!
Logged
Pages: [1]   Go Up