NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 4 5 6 7 8 … 93 Next »
Recording a specific episode based on season and episode number

 
  • 0 Vote(s) - 0 Average
Recording a specific episode based on season and episode number
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#11
2014-12-19, 02:46 AM
It is, it looked like it couldn't find system.data.sqlite dll so I moved it to the bin\debug directory and then got a different exception that has my stumped for the moment.

ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

HResult=-2146234304
Message=Could not load file or assembly 'System.Data.SQLite, Version=1.0.85.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source=NUtility
StackTrace:
at NUtility.DatabaseHelper..ctor()
at NUtility.DatabaseHelper..cctor()
InnerException:
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#12
2014-12-19, 02:49 AM
Did you follow my advice about setting the target to x86? You need to do that, or you'll get that error.
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#13
2014-12-19, 03:06 AM
sub Wrote:Did you follow my advice about setting the target to x86? You need to do that, or you'll get that error.

Yes I did, that's the confusing part
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#14
2014-12-19, 03:12 AM
Did you try dropping your executable in "c:\program files (x86)\npvr" and running it form there? It might be some other dependency missing.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#15
2014-12-19, 03:20 AM
There is sqlite.interop.dll needed for sure

Martin
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#16
2014-12-19, 03:22 AM
sub Wrote:Did you try dropping your executable in "c:\program files (x86)\npvr" and running it form there? It might be some other dependency missing.

What that issue was that I had the latest SQLite instead of the version in the NPVR directory. I dropped that version in the debug directory and the error went away, however, now the app just stares at me and appears to be dead but is sitting on the line below doing what appears to benothing, it's not locked up, I can break out of it. It just sits there. :confused:

Code:
NUtility.ScheduleHelperFactory.GetScheduleHelper.ScheduleRecording(NUtility.EPGEvent.LoadByOID(t.Rows(X).Item("OID")), RecordingQuality.QUALITY_DEFAULT)
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#17
2014-12-19, 03:34 AM
The only thing I can come up with is that the utility needs to run on the server instead of the client but work comes early for me so my plan for tomorrow is to install NPVR onto the development machine. I'll let you know what happens.

Thanks sub, I would have never gotten as far as I have without your help. I make a good utilities programmer, plugins not so much. If there's anything y'all need done in that area that I can help with, I'd be happy to.
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#18
2014-12-19, 07:32 PM
I converted sub's code to VB, that's below. Everything works up to the line that actually tries to schedule. When I compile and run the code from the NPVR program directory, nothing happens. I checked the task manager and it shows up as a background process and then exits a few seconds later. When I try and run it in the environment, I get the highlighted error. Any ideas what I'm doing wrong?

An unhandled exception of type 'System.NotImplementedException' occurred in NShared.dll

Additional information: The method or operation is not implemented.


Code:
Sub Main()
        '
        ' Check for existance of config file and create if missing
        '
        If My.Settings.NConnection = "" Or Command() = "/C" Then
            frmInteractive.ShowDialog()
        End If
        Dim t As DataTable
        t = LoadEPG("SELECT * FROM EPG_EVENT WHERE season = 1 and episode=1 AND first_run='Y'")
        For X As Integer = 0 To t.Rows.Count - 1

            If ScheduleHelperFactory.GetScheduleHelper() Is Nothing Then
                RecordingServiceProxy.ForceRemote()
                ScheduleHelperFactory.SetScheduleHelper(RecordingServiceProxy.GetInstance())
                PluginRegistry.GetInstance().LoadPlugins()
            End If
            Dim helper As IScheduleHelper = ScheduleHelperFactory.GetScheduleHelper()

            evt = EPGEvent.LoadByOID(t.Rows.Item(X).Item("OID"))
            If evt IsNot Nothing Then
                Dim myRecording As New ScheduledRecording()
                If True Then
                    myRecording = helper.ScheduleRecording(evt, 1, 0, RecordingQuality.QUALITY_BEST, "[TV Shows]")
                    If myRecording IsNot Nothing Then
                        Logger.Debug((myRecording.OID.ToString() & " Schedule " & evt.StartTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm") & " ") + evt.Subtitle)
                    Else

                        Logger.Debug((evt.OID.ToString() & " Failed   " & evt.StartTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm") & " ") + evt.Subtitle)
                    End If

                End If
            End If
        Next
        MsgBox("Finished!")
    End Sub
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#19
2014-12-19, 07:40 PM
Think I know what happened, my development machine does not have a physical tuner in it, teh stack trace points to the IP TV device. Answers that! Off to drop the executable on the actual box. Looks like I need to build a development machine with an actual physical tuner in it.

System.NotImplementedException was unhandled
HResult=-2147467263
Message=The method or operation is not implemented.
Source=NShared
StackTrace:
at NShared.IPTVRecorder.IsMultiRecordPossible(ScheduledRecording requiredRecording, List`1 overlappingRecordings)
at NShared.Visible.CaptureSource.CanRecord(ScheduledRecording scheduledRecording)
at NShared.RecordingServiceProxy.ScheduleRecording(EPGEvent epgEvent, Boolean onlyNewEpisodes, ScheduledRecording scheduledEvent, Boolean allocateRecurring, DayMask dayMask, Int32 keep, Int32 recurrenceGroupID, Boolean timeslot, Boolean forceScheduleReload, String advancedRules)
at NShared.RecordingServiceProxy.ScheduleRecording(EPGEvent epgEvent, ScheduledRecording scheduledEvent, Boolean allocateRecurring, DayMask dayMask, Int32 keep, Int32 recurrenceGroupID, Boolean timeslot, Boolean forceScheduleReload)
at NShared.RecordingServiceProxy.ScheduleRecording(EPGEvent epgEvent, Int32 prePadding, Int32 postPadding, RecordingQuality quality, String recordingDirectoryID)
at NScheduler.modMain.Main() in C:\Users\Chris\Documents\Visual Studio 2013\Projects\NScheduler\modMain.vb:line 123
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at System.Activator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#20
2014-12-19, 07:51 PM
Okey Dokey, success in translating code from C# to VB, it works! Now I have a question, what method do I call to schedule a recurring show instead of a one time episode?
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom recording tomx 2 462 2025-02-07, 09:14 AM
Last Post: tomx
  API call for Recording Complete linustorvalds 1 305 2025-01-19, 02:11 PM
Last Post: mvallevand
  Manual recording API mvallevand 2 946 2023-11-09, 02:14 PM
Last Post: mvallevand
  Recording direct to GPhotos API rgonzalez 0 1,420 2020-06-29, 04:45 AM
Last Post: rgonzalez
  Recurring Recording URL Parameters jcole998 2 2,920 2019-09-19, 01:08 PM
Last Post: jcole998
  Get recording length from stream skogl 46 13,615 2019-08-15, 09:34 PM
Last Post: sub
  XMLTV Channel Number Option gdogg371 12 6,679 2018-07-18, 04:32 PM
Last Post: sub
  Unexpected result when deleting a pending recording scJohn 5 3,691 2018-05-06, 10:09 PM
Last Post: sub
  How to best verify success when adding a recurring recording drmargarit 1 2,758 2017-03-02, 03:13 PM
Last Post: mvallevand
  Update Season and Episode from EPG_EVENT puck64 0 2,791 2015-08-31, 07:37 AM
Last Post: puck64

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

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

Linear Mode
Threaded Mode