-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recordings Screen: Add icon not working for slave backend recordings #148
Comments
still happening in beta v1.20.0? |
Yes, it's still happening on the latest commit. Could be my misunderstanding of Eclipse, but in Git there Running on: mythtv-android-frontend-1.10.1-414-g6745950 |
Retested both before and after 155 was fixed. Fails for the |
Yeah. Saw that. Am working on a fix.
|
It appears that the channel and starttime are getting passed OK When appendLocationHostname is run, it uses: FIELD_MASTER_HOSTNAME So, I think loadRecorded fails to find the program because the slave's hostname
08-28 17:41:35.796: I/EpisodeFragment(15002): startCreateStreamService : enter 08-28 17:41:35.796: I/EpisodeFragment(15002): startCreateStreamService : chanId=2141 08-28 17:41:35.796: I/EpisodeFragment(15002): startCreateStreamService : start=1377716940000 08-28 17:41:35.806: I/EpisodeFragment(15002): startCreateStreamService : exit 08-28 17:41:35.906: V/MainApplication(15140): onCreate : enter 08-28 17:41:36.056: D/dalvikvm(15140): GC_CONCURRENT freed 592K, 11% free 7425K/8327K, paused 4ms+2ms 08-28 17:41:36.196: D/dalvikvm(15140): GC_CONCURRENT freed 754K, 12% free 8001K/9031K, paused 2ms+5ms 08-28 17:41:36.386: V/MainApplication(15140): onCreate : exit 08-28 17:41:36.396: D/LiveStreamService(15140): onHandleIntent : enter 08-28 17:41:36.436: D/LiveStreamService(15140): onHandleIntent : locationProfile=LocationProfile [id=1, type=HOME, name=Mythbackend on mc0, url=http://192.168.1.204:6544/, selected=true, connected=true, version=0.27.20130820-2, protocolVersion=77, wolAddress=, hostname=mc0, ] 08-28 17:41:36.436: D/LiveStreamService(15140): onHandleIntent : intent.extras.chanid=2141 08-28 17:41:36.436: D/LiveStreamService(15140): onHandleIntent : intent.extras.startt=1377716940000 08-28 17:41:36.496: V/LiveStreamService(15140): sendCompleteRecordedProgramNotFound : enter |
Argh - or I could have read my email before pressing the comment button. |
If you let the hls transcode finish on the backend, the service stops in I am working on making sure the service gets stopped before it tries send Problem now is the service is adding a bogus livestream entry in the db I hope to have it cleaned up tonight sometime.
|
I just updated the title of the issue. It's Circled +, not Circled X. The failure |
This is still failing. MAF can't find the recording. No protocol is received by the |
@billmeek can you verify the data is correct on the backend and what is being sent from the app? nothing is received on the secondary backend? Is there any error on the primary backend? |
Looking at the slave backend with upnp logging on, there are no messages and Looking at the master backend with the same tools. The only message in the backend The above were captured (or not captured) after the Circled + followed by Process For this test, mc0 = Master Backend, mc1 = Slave Backend, slave-mc1 = the Slave Backend's profile As for the data, here's a copy of: http://mc0:6544/Dvr/GetRecordedList?TitleRegEx=Fly-Away%20Baby The same result comes back if the hostname is changed to mc1.
The data in the MAF DB looks like: sqlite> .mode line sqlite> select * from recorded where title='Fly-Away Baby'; _id = 260 START_TIME = 1377794700000 END_TIME = 1377799200000 TITLE = Fly-Away Baby SUB_TITLE = CATEGORY = Crime drama CATEGORY_TYPE = REPEAT = 0 VIDEO_PROPS = 2 AUDIO_PROPS = 0 SUB_PROPS = 0 SERIES_ID = PROGRAM_ID = MV000409810000 STARS = 0.5 FILE_SIZE = 167323384 LAST_MODIFIED = 2013-08-29T17:29:51 PROGRAM_FLAGS = 5 HOSTNAME = slave-mc1 FILENAME = 2143_20130829171700.mpg AIR_DATE = DESCRIPTION = Newswoman Torchy Blane (Glenda Farrell) shows her policeman boyfriend (Barton MacLane) she can crack a murder case. INETREF = 167060 SEASON = 0 EPISODE = 0 CHANNEL_ID = 2143 RECORD_ID = 761 IN_ERROR = 0 MASTER_HOSTNAME = mc0 LAST_MODIFIED_DATE = 1377797882763 And the record in the MythTV DB is: mysql> select * from recorded where title='fly-away baby'\G *************************** 1. row *************************** chanid: 2143 starttime: 2013-08-29 17:17:00 endtime: 2013-08-29 17:25:00 title: Fly-Away Baby subtitle: description: Newswoman Torchy Blane (Glenda Farrell) shows her policeman boyfriend (Barton MacLane) she can crack a murder case. season: 0 episode: 0 category: Crime drama hostname: slave-mc1 bookmark: 0 editing: 0 cutlist: 0 autoexpire: 1 commflagged: 1 recgroup: Default recordid: 761 seriesid: programid: MV000409810000 inetref: 167060 lastmodified: 2013-08-29 12:29:51 filesize: 167323384 stars: 0.5 previouslyshown: 0 originalairdate: 0000-00-00 preserve: 0 findid: 0 deletepending: 0 transcoder: 0 timestretch: 1 recpriority: 0 basename: 2143_20130829171700.mpg progstart: 2013-08-29 16:45:00 progend: 2013-08-29 18:00:00 playgroup: Default profile: Default duplicate: 0 transcoded: 0 watched: 0 storagegroup: Default bookmarkupdate: 0000-00-00 00:00:00 1 row in set (0.00 sec) |
@billmeek does this fail when you press the button? Or does it fail when you go to the VideoActivity and it never plays? |
It happens when I press the Circled + (followed by Process in the warning pop up.) |
@dmfrey, No, I still get the "Recorded program not found" Toast. FWIW, Running on: mythtv-android-frontend-1.10.1-490-gb2a8ac9 |
pull the latest head. I removed the toasts last night and fixed some things On Thu, Sep 12, 2013 at 11:20 AM, billmeek [email protected] wrote:
My Google Profile http://www.google.com/profiles/dmfrey |
Grrr, I had done the pull for, mythtv-android-frontend-1.10.1-490-gb2a8ac9. However, still no joy. The Toast is gone. I see the following in LogCat:
I'm trying to look inside the extras for the hostname, and not doing well. Is the |
@billmeek, does a entry ever get created in the live_stream table in the On Thu, Sep 12, 2013 at 12:43 PM, billmeek [email protected] wrote:
My Google Profile http://www.google.com/profiles/dmfrey |
No, the live_stream table is empty. Looking at:
The host used to look-up the recording will be that of the master |
no, that statement is just in place to keep the items that are from the Can you see what the data being returned from GetRecordedList is setting On Thu, Sep 12, 2013 at 4:39 PM, billmeek [email protected] wrote:
My Google Profile http://www.google.com/profiles/dmfrey |
Please look a the comment 10 boxes above this one on the issues web In all three cases, the hostname is: slave-mc1. |
I had a thought...I wonder if this is the same problem as #170 where were are staring the connection to the backend, instead of the frontend? I don't recall having to call the slave backend directly previously. Could that have changed with v.27+? |
I don't think it's a Frontend issue. but you bring up a good point. The 1st message below is what a GOOD request looks like for
Using the above as a template, I modified the request for what I
The above worked. A mythtranscode session is running now on Doesn't fix the problem, but it does show what the proper message Keep in mind that MAF never gets this close. It can't even find the
|
If you'd like to connect to my Master and see this, send Here's the response from mc0 for the recording made on
|
I believe I am sending in the hostname in the call to the backend. For these programs, can you see if the start time is different in the
|
Interesting. Of the 8 slave-mc1 recordings, only 2 are in the I tested one of the matches, and it's 74% transcodied as
|
can you see what the db has on the backend as well? |
Backend:
XML:
There's a full dump of the MySQL, XML and Sqlite about midway above. |
I think that is the issue. If I remember correctly, I am passing in the
|
Sounds good. Converting the MAF times, below is a working Live Free or Die Hard|1366480800000 = Sat Apr 20 18:00:00 UTC 2013
|
can you change your query from above where only 2 entries were returned from the recording_recorded table to the following: select
r.title, r.sub_title, r.start_time, rr.start_ts, rr.start_time
from
recorded r
left join recording_recorded rr on r.start_time = rr.start_time and r.record_id = rr.record_id and r.master_hostname = rr.master_hostname
where
r.master_hostname = 'mythcenter'
order by
r.start_time desc; Then if you want to see where they aren't equal, add this to the where statement and not rr.start_time = rr.start_ts There is a join column in the recording_recorded table called START_TIME, which maps to the START_TIME in the recorded table. I noticed early on that these sometimes did match up (i.e. a program is supposed to start at 6:00 pm, and you either press the Record button on the remote at 6:02 pm or set a new rule to record just one program now an you are at 6:02 pm, get the idea??). That is why there is a discrepancy between the two. In your previous query, you were joining in the recording_recorded.START_TS, which is wrong in this case. If the above returns a record per program (data from both recorded and recording_recorded, then all the data is getting loaded correctly. I think what it boils down to is I am trying to do a lookup for a recorded program, probably off of the wrong timstamp, so that is the real reason we are not finding it and not that it can't be played on the secondary backend. |
OK, the 1st query returns 228 rows. The 2nd returns 7 rows. Castle|Den of Thieves|1379030400000|1379030460000|1379030400000
Without a Trace|Lone Star|1379026800000|1379030040000|1379026800000
Friday the 13th, Part VI: Jason Lives||1379026800000|1379030460000|1379026800000
Fly-Away Baby||1377794700000|1377796620000|1377794700000
Woodsmith Shop|Our 5 Favorite Shop Jigs|1370115000000|1370115540000|1370115000000
Flea Market Flip||1368207000000|1368207960000|1368207000000
My Cousin Vinny||1366479000000|1366480980000|1366479000000 |
Fixed by d8a1448. Master Backend got the request and started transcoding
Transcoding completed, however, there were no updates to the % processing |
I closed #164 just after this one. If it's not playing then I am probably
|
The episode exists in the MAF database. The hostname is slave-mc1, which
is correct. No protocol was seen and (of course) no backend messages were
seen when the Add icon (Play It Now) was pressed. Also fails on normal
(non-slave) episodes.
The toast message said "Recorded program not found"
Running on: mythtv-android-frontend-1.10.1-398-g2305cc5 (master)
I added the following debug and found that the starttime is 0, yet, the channelId
was correct.
LogCat with Garbage Collection and W/ProgramDaoHelper(...): load : details messages edited out.
The text was updated successfully, but these errors were encountered: