NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) NextPVR Enhanced Web Admin (NEWA) v
« Previous 1 … 3 4 5 6 7 … 47 Next »
Bug fix request for Program details on a deleted channel

 
  • 0 Vote(s) - 0 Average
Bug fix request for Program details on a deleted channel
topcat
Offline

Member

United Kingdom
Posts: 85
Threads: 15
Joined: Feb 2007
#1
2015-06-21, 12:24 PM
IN the web console trying to view the details of a program that was recorded on a channel that is no longer on the system causes an error

within details2.aspx.cs when the lookup Channel.LoadByOID returns nothing it then errors on the channel.name property
lines 200, 345, 508

2 out of the 3 main objects still have the channel name property
so I did a quick test on the LoadByOID function to see if the response is Null, then return the other details.

I have the code if wanted

T
NPVR: 6
Windows 10 Enterprise
Hauppauge WinTV Dual Nova-T DVB-T
TBS Dual 6982 DVBS/S2
SSD System and Live
2TB Recording Store
Windows KODI Clients, OSMC (Kodi) Hardware Clients, Android Kodi Clients, Custom Direct URI players.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#2
2015-06-22, 10:40 PM
topcat Wrote:IN the web console trying to view the details of a program that was recorded on a channel that is no longer on the system causes an error

within details2.aspx.cs when the lookup Channel.LoadByOID returns nothing it then errors on the channel.name property
lines 200, 345, 508

2 out of the 3 main objects still have the channel name property
so I did a quick test on the LoadByOID function to see if the response is Null, then return the other details.

I have the code if wanted

T

Zip up your .cs code for details2 and post it. I will take a look.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
topcat
Offline

Member

United Kingdom
Posts: 85
Threads: 15
Joined: Feb 2007
#3
2015-06-24, 10:11 PM
.cs attached
NPVR: 6
Windows 10 Enterprise
Hauppauge WinTV Dual Nova-T DVB-T
TBS Dual 6982 DVBS/S2
SSD System and Live
2TB Recording Store
Windows KODI Clients, OSMC (Kodi) Hardware Clients, Android Kodi Clients, Custom Direct URI players.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#4
2015-06-25, 02:41 AM
Thanks.... Why are you doing this when the Channel object is null.... you are setting the channel number to the object id of the old channel.... not really any value in that that I can see. The other code makes sense.

showChannelNumber.Text = Convert.ToString(scheduledRecording.ChannelOID);
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
topcat
Offline

Member

United Kingdom
Posts: 85
Threads: 15
Joined: Feb 2007
#5
2015-06-26, 08:47 AM
The channel object is returned null when the old channel id lookup fails

I grabbed the name from the recording object

I pushed the old channel id number back to the showchannelnumber box purley for debug purposes.
after I had this working I then manually edited the DB to update the old recordings with the new channel ID numbers
NPVR: 6
Windows 10 Enterprise
Hauppauge WinTV Dual Nova-T DVB-T
TBS Dual 6982 DVBS/S2
SSD System and Live
2TB Recording Store
Windows KODI Clients, OSMC (Kodi) Hardware Clients, Android Kodi Clients, Custom Direct URI players.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#6
2015-06-27, 02:20 PM
topcat Wrote:The channel object is returned null when the old channel id lookup fails

I grabbed the name from the recording object

I pushed the old channel id number back to the showchannelnumber box purley for debug purposes.
after I had this working I then manually edited the DB to update the old recordings with the new channel ID numbers

I did add your code to the base code except for the move of the channel OID. So it will be in releases moving forward.

Thanks for your work.

Cheers.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#7
2015-09-01, 12:22 AM
This was implemented in the latest release of NEWA.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Bug causing all recordings to be deleted chuck_2330 13 5,917 2015-09-02, 10:43 AM
Last Post: UncleJohnsBand
  Channel Group drop down box 2leftfeet 3 2,695 2015-01-28, 01:56 AM
Last Post: UncleJohnsBand
  NEWA, Safari Browser on Mac, Live Channel sfatula 4 2,714 2015-01-01, 08:24 PM
Last Post: sfatula
  Problems with Autorecord for shows that span midnight (plus priority request) jksmurf 9 3,601 2014-10-11, 04:12 PM
Last Post: UncleJohnsBand
  Channel order. (mobile NEWA) giorgioclimb 4 2,062 2013-12-16, 08:44 AM
Last Post: giorgioclimb
  INEWA Android feature request CORRUPT27 2 1,848 2013-06-25, 07:30 PM
Last Post: CORRUPT27
  Feature request - info shown on NEWA Recordings table view Zogg 5 2,851 2013-01-27, 04:16 PM
Last Post: brcarls
  Only showing up to channel 30 on NextPVR Web Server mbluett 3 2,002 2013-01-02, 03:33 AM
Last Post: UncleJohnsBand
  Channel Logos on NEWA webpage conradcjc 1 1,808 2012-12-12, 09:45 PM
Last Post: UncleJohnsBand
  Is a vertical channel layout possible? jsa 1 1,540 2012-01-08, 02:15 PM
Last Post: jsa

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode