Ticket #11287 (closed Bug Report - General: fixed)
Opened 5 months ago
Last modified 4 months ago
mythtv-setup can not add video sources when a large lineup exists in Schedules Direct
| Reported by: | skd5aner <skd5aner@…> | Owned by: | danielk |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.26.1 |
| Component: | MythTV - Mythtv-setup | Version: | 0.26-fixes |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
My cable company got the wise idea of completely switching their lineups today. I followed the age old advice of simply deleting the existing video sources, and trying to re-add them. However, the Data Direct lineup box never populates. I'm leveraging schedules direct.
Here are the only relevant lines from the log with -v most:
2012-12-11 18:58:37.460719 I Fetching lineups from Schedules Direct... 2012-12-11 18:58:37.746113 I DataDirect: Grabbing channel data 2012-12-11 18:58:37.746193 I Downloading DataDirect feed 2012-12-11 18:58:49.756527 E DataDirect: Failed to get data: Download error 2012-12-11 18:58:49.756547 E DDLS: fillSelections did not successfully load selections 2012-12-11 18:58:49.756949 I DataDirect: Deleting temporary files
Searching the mailing list, I can across this email thread, and it appears to be a bug associated with the switch from leveraging wget to MDM and it timing out too early. http://www.gossamer-threads.com/lists/mythtv/users/530565#530565
I would submit a patch to increase the time out, but I'm not sure what the most reasonable setting should be. I can see this is impacting other users as well, and hadn't noticed a bug report for it yet.
Attachments
Change History
comment:1 Changed 5 months ago by skd5aner <skd5aner@…>
comment:2 Changed 5 months ago by skd5aner <skd5aner@…>
Sorry, hit submit too soon - Applying that change did "fix" the problem for me.
comment:3 Changed 5 months ago by Chris Pinkham <cpinkham@…>
- Status changed from new to closed
- Resolution set to fixed

Per the email thread, I applied the following patch:
diff --git a/mythtv/libs/libmythbase/mythdownloadmanager.cpp b/mythtv/libs/libmy index cc1721b..2bbdc20 100644 --- a/mythtv/libs/libmythbase/mythdownloadmanager.cpp +++ b/mythtv/libs/libmythbase/mythdownloadmanager.cpp @@ -813,7 +813,7 @@ bool MythDownloadManager::downloadNow(MythDownloadInfo *dlIn while ((!dlInfo->IsDone()) && (dlInfo->m_errorCode == QNetworkReply::NoError) && (((!dlInfo->m_url.startsWith("myth://")) && - (dlInfo->m_lastStat.secsTo(MythDate::current()) < 10)) || + (dlInfo->m_lastStat.secsTo(MythDate::current()) < 45)) || ((dlInfo->m_url.startsWith("myth://")) && (startedAt.secsTo(MythDate::current()) < 20)))) {That said, 45 might have been too long. I think upping it from 10 to ~15-20 might have been sufficient in my case, based on me counting out loud while watching the console scroll to where it was successful.