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 … 14 15 16 17 18 … 47 Next »
NEWA Web Server with AdvancedRules

 
  • 0 Vote(s) - 0 Average
NEWA Web Server with AdvancedRules
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,878
Threads: 954
Joined: May 2006
#1
2011-03-24, 09:50 PM (This post was last modified: 2011-03-24, 09:55 PM by mvallevand.)
UJB, further to this post http://forums.nextpvr.com/showthread.php...post407635 web services doesn't appear to like titles with quotes because of this code.

string rules = "title like '" + programme.Title + "%'";

Should I escape titles beforehand and if so which call use AdvancedRules?

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#2
2011-03-27, 02:21 PM
Not sure if channing that line to be + programme.Title.Replace("'","''") + would fix the problem or not(changing single quotes found in the title to double single quotes....do you want to give it a go? I am sure there is a valid replace that can be done for this....just not sure which it is and what SQLite will like as the result and still provide expected results. Something sticks in my head that I may have looked at this before.....but I am in a slight fog now recovering from the cold from hell.
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
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,878
Threads: 954
Joined: May 2006
#3
2011-03-27, 03:35 PM
It works, I made a post that I deleted that you can might stiill see, and you can undelete now. I was going to repost because I think my solution probably should be with a local string but forgot.

I also have concerns about the use of the trialing % for this query too. If V returns next year you could end up with every show beginning with V on every channel and any time.

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#4
2011-03-29, 02:59 AM
mvallevand Wrote:It works, I made a post that I deleted that you can might stiill see, and you can undelete now. I was going to repost because I think my solution probably should be with a local string but forgot.

I also have concerns about the use of the trialing % for this query too. If V returns next year you could end up with every show beginning with V on every channel and any time.

Martin

I added the single to double single quote conversion when a recurring recording is being created....

I am not sure why I used the % at the end of the title when building the rule.....I am thinking becase I used the Like verb. Do you think it should be string rules = "title equals '" + programme.Title + '"; instead of string rules = "title like '" + programme.Title + "%'"; ?? (of course single quoates in the value of programme.title will now be double quotes)
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
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,878
Threads: 954
Joined: May 2006
#5
2011-03-29, 03:27 AM
I think this query should be exact. Could you imagine a rule for short title like V that would record every show beginning with V at any time on any channel. In SearchLite I am setting these from EPG data anyway and I guess I could always send exact matches for this query.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Broken X-NEWA Info Link on NextPVR.com cweseloh 4 2,668 2020-05-02, 01:02 AM
Last Post: cweseloh
  gbpvr.com still somewhere in the NEWA code? jksmurf 0 2,059 2019-02-26, 01:29 AM
Last Post: jksmurf
  NEWA scheduled recording update ability broken in 4.2.2 snagglewest 0 2,014 2018-07-11, 12:12 AM
Last Post: snagglewest
  Where does NEWA read the Show name from in the NEWA Web App? jksmurf 3 3,098 2018-07-03, 03:26 AM
Last Post: jksmurf
  Newa snaitaz 8 4,670 2018-05-17, 09:30 PM
Last Post: sub
  NEWA Auto-Search Command Line Interface (CLI) UncleJohnsBand 40 37,580 2018-05-09, 12:50 AM
Last Post: jksmurf
  NEWA modern "NEW" page missing urls??? snagglewest 3 3,394 2017-12-03, 12:48 AM
Last Post: snagglewest
  Server Error in '/' Application smajor 19 16,851 2017-10-27, 12:57 PM
Last Post: mvallevand
  Difference between NPVR and NEWA recordings lists Bobins 4 5,080 2017-09-27, 10:16 PM
Last Post: Bobins
  Legacy NEWA stu2j 4 4,521 2017-07-19, 12:21 AM
Last Post: stu2j

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

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

Linear Mode
Threaded Mode