![]() |
|
New MythTV add-on using libcmyth - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Development (/forumdisplay.php?fid=32) +--- Forum: PVR Development (/forumdisplay.php?fid=136) +--- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694) Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
RE: New MythTV add-on using libcmyth - Jimmer - 2012-04-09 23:00 (2012-04-09 22:19)tsp42 Wrote: I've added the sorting of recordings into movies / series folders based on duration/genre type and a user definable regular expression. Sounds great, it's really starting to come together now.... however, since the latest merge I now get the following: Code: WebServer.cpp: In static member function ‘static int CWebServer::AnswerToConnection(void*, MHD_Connection*, const char*, const char*, const char*, const char*, unsigned int*, void**)’:when I try to compile on my ATV1. Any pointers? Quick, dirty fixes? It doesn't appear to be a problem compiling on a modern, x86_64 kernel, just the old x86 one with Hardy (2.6.24-28-generic) Thanks again for all the hard work! Jimmer EDIT: if anyone else is having this problem, I got around it by find a hardy deb for libmicrohttpd v4.2 and recompliling.... RE: New MythTV add-on using libcmyth - dodoadoodoo - 2012-04-09 23:34 (2012-04-09 20:33)tsp42 Wrote: no it should only fetch the metadata. Are you sure that is downloads the actual recording? Can you check if there are any recordings stored in the coverart or fanart storage group? Being lazy I have only configured the default storage group on the b/e. And, yes you are correct, I have both the metadata and actual recordings in those folders (two drives). Seems like someone (cmyth, myth protocol?) is a little bit greedy when fetching the metadata :-) /D RE: New MythTV add-on using libcmyth - dteirney - 2012-04-10 01:51 (2012-04-03 19:38)dodoadoodoo Wrote: We quite often use "chase play" (start a recording, wait a while, begin watching while still recording) in our house. This basically works well, with the exception that the recording length is not updated while watching, it is firmly set to whatever the length was when you started watching. Not a big a deal unless you want to skip forward, at which point it becomes very annoying. Anyway, I took a look at the code, and it seems that the backend periodically informs the frontend of updated recording sizes via the CMYTH_EVENT_UPDATE_FILE_SIZE. So, I added some code in MythEventHandler::ImpMythEventHandler::Action() to store this information, and adapted PVRClientMythTV::LengthRecordedStream() to check if the EventHandler has any uptodate info. This works well, except for the little detail that LengthRecordedStream really should return the length of the stream (as seconds I presume) and not the size in bytes as provided by the backend event. I looked at doing this exact thing in the standard myth:// protocol handler as we sometimes also end up watching content that is currently recording. I'd already written a bunch of the code and then noticed that the CMYTH_EVENT_UPDATE_FILE_SIZE event wasn't being sent from the backend. After some more digging it seems that the event only gets fired for Live TV, not standard recordings. Might pay to check on that before going too far. Let me know what you find. I'm going to look at changing it so if the program is currently recording the file length is retrieved from the backend every, say, 5 minutes. I'm pretty sure the "length" needed by the standard CFile interface in XBMC is bytes so that's all fine. As usual I am time poor so this might not happen for a while... Not sure what the "length recorded stream" API needs for PVR content. RE: New MythTV add-on using libcmyth - tdavis - 2012-04-10 05:37 (2012-04-09 22:19)tsp42 Wrote: I've added the sorting of recordings into movies / series folders based on duration/genre type and a user definable regular expression. Oh, good.. but for some reason, on my mythtv setup, it's SeriesTitle::Program (seperated by '::'). Any ideas on what to change this to? I've been playing around, but seem to be getting no where.. Oh, never mind.. I figured it out, just added "::.*" and it started to work. RE: New MythTV add-on using libcmyth - dodoadoodoo - 2012-04-10 09:23 (2012-04-10 01:51)dteirney Wrote:(2012-04-03 19:38)dodoadoodoo Wrote: We quite often use "chase play" (start a recording, wait a while, begin watching while still recording) in our house. This basically works well, with the exception that the recording length is not updated while watching, it is firmly set to whatever the length was when you started watching. Not a big a deal unless you want to skip forward, at which point it becomes very annoying. Anyway, I took a look at the code, and it seems that the backend periodically informs the frontend of updated recording sizes via the CMYTH_EVENT_UPDATE_FILE_SIZE. So, I added some code in MythEventHandler::ImpMythEventHandler::Action() to store this information, and adapted PVRClientMythTV::LengthRecordedStream() to check if the EventHandler has any uptodate info. This works well, except for the little detail that LengthRecordedStream really should return the length of the stream (as seconds I presume) and not the size in bytes as provided by the backend event. What version did you test with? I am running a 0.24 b/e and I seem to get the CMYTH_EVENT_UPDATE_FILE_SIZE event for all current recordings. RE: New MythTV add-on using libcmyth - Jimmer - 2012-04-10 09:33 (2012-04-10 05:37)tdavis Wrote:(2012-04-09 22:19)tsp42 Wrote: I've added the sorting of recordings into movies / series folders based on duration/genre type and a user definable regular expression. Care to share your explicit regexp? I personally tried many combinations including ::.* but couldn't get it working for me. I still get: Homeland::Semper I |------Homeland::Semper I Homeland::Pilot |------Homeland::Pilot Homeland::Grace |------Homeland::Grace So, many individual top folders, each with their single episodes inside. Obviously, I'd be looking for something like: Homeland |------Semper I |------Pilot |------Grace I wonder why the default regexp works for tsp and not for us? I wouldn't have thought there was that much variation in how mythbackend serves up the episode names.... Jim RE: New MythTV add-on using libcmyth - dteirney - 2012-04-10 10:23 (2012-04-10 09:23)dodoadoodoo Wrote: What version did you test with? I am running a 0.24 b/e and I seem to get the CMYTH_EVENT_UPDATE_FILE_SIZE event for all current recordings. Weird, I was using 0.24 as well. How often do you observe the events getting fired. Perhaps I wasn't looking for them long enough. Live TV fires them out quite frequently. RE: New MythTV add-on using libcmyth - dodoadoodoo - 2012-04-10 10:37 (2012-04-10 10:23)dteirney Wrote:(2012-04-10 09:23)dodoadoodoo Wrote: What version did you test with? I am running a 0.24 b/e and I seem to get the CMYTH_EVENT_UPDATE_FILE_SIZE event for all current recordings. I get them every tenth second actually, looking like this (log excerpt): 10:35:07 T:2752543600 DEBUG: AddOnLog: MythTV cmyth PVR Client: EVENT ID: CMYTH_EVENT_UPDATE_FILE_SIZE, EVENT databuf: 4037 2012-04-10T10:34:00 59765576 10:35:17 T:2752543600 DEBUG: AddOnLog: MythTV cmyth PVR Client: EVENT ID: CMYTH_EVENT_UPDATE_FILE_SIZE, EVENT databuf: 4037 2012-04-10T10:34:00 73847716 RE: New MythTV add-on using libcmyth - tsp42 - 2012-04-10 10:45 The matched String between (?<title> and the next ) will be used as the folder name. If no match is found the entire title plus subtitle will be used. To match the :: used as the current separator between title and subtitle use: ^(?<title>.+?):: The RegEx documentation is available here: http://www.boost.org/doc/libs/1_34_1/libs/regex/doc/syntax_perl.html Mythtv can't extract the episode from the EIT data I get. I don't have any subtitles and the episode number is encode in the title like: the walking dead (18) so the current default RegEx is used to recognize this pattern. I will change the default value in the next update. RE: New MythTV add-on using libcmyth - Jimmer - 2012-04-10 11:45 (2012-04-10 10:45)tsp42 Wrote: The matched String between (?<title> and the next ) will be used as the folder name. If no match is found the entire title plus subtitle will be used. To match the :: used as the current separator between title and subtitle use: ^(?<title>.+?):: Thanks! That totally worked..... was starting to tear my hair out! Just a little wrinkle though: When I schedule recordings through mythweb, they are stored in mythconverg as title/subtitle, e.g: Title / Subtitle / Description Homeland / Semper I / "Big plans are made for national hero Brody, but his increasingly erratic behaviour threatens his status as the media's latest darling, prompting the vice president to send an adviser to check him out. Carrie nears the end of her four-week surveillance warrant and grows desperate for evidence linking the marine to Abu Nazir, but Saul instructs her to focus on the terrorist's money trail. Thriller, starring Claire Danes and Damian Lewis." which the addon will display in the refocus skin as Homeland::Semper I with the appropriate description However, if I schedule the same recording through the addon itself, it will be stored as: Title / Subtitle / Description Homeland: Semper I / Tue Apr 10 09:30:00 2012 / "" which the addon will display as Homeland: Semper I::Tue Apr 10 09:30:00 2012 with no description information obviously, this will create a differently titled show for each manually created recording which will not match the naming scheme used by the other mythweb scheduled recordings and they will lack episode descriptions. This has happened to me a few times where regularly scheduled recordings made via mythweb have failed for whatever reason and then I have scheduled "fill" recordings via the addon. Some extra info: I live in the UK (using dvb-t) and primarily use the RadioTimes xmltv grabber for guide data, but also use EIT for channels that are omitted by RadioTimes. All of the above occurs whether or not the source is EIT or XMLTV. All channels provided by EIT also have correctly coloured EPG entries, whereas XMLTV one's are all the same colour irregardless of type of programming displayed..... Thanks again for all the hard work! |