[mythtv] Patch to use tv_grab_uk --list-regions
Matthew Burnham
mythtv-dev@snowman.net
Mon Jan 6 11:38:53 EST 2003
--=-5o0OcnE/2aTcJQcfB7qI
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Attached patch utilises the tv_grab_uk --list-regions option now
available.
--=-5o0OcnE/2aTcJQcfB7qI
Content-Disposition: attachment; filename=diff_listregions.txt
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=diff_listregions.txt; charset=ANSI_X3.4-1968
? diff_listregions.txt
Index: libs/libmythtv/videosource.cpp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/lib/cvs/MC/libs/libmythtv/videosource.cpp,v
retrieving revision 1.10
diff -u -r1.10 videosource.cpp
--- libs/libmythtv/videosource.cpp 6 Jan 2003 01:18:08 -0000 1.10
+++ libs/libmythtv/videosource.cpp 6 Jan 2003 11:38:57 -0000
@@ -51,8 +51,7 @@
void RegionSelector::fillSelections() {
clearSelections();
=20
- /*QString command =3D QString("tv_grab_uk --configure --list-regions")
- .arg(zipcode);
+ QString command =3D QString("tv_grab_uk --configure --list-regions");
FILE* fp =3D popen(command.ascii(), "r");
=20
if (fp =3D=3D NULL) {
@@ -63,33 +62,11 @@
QFile f;
f.open(IO_ReadOnly, fp);
for(QString line ; f.readLine(line, 1024) > 0 ; ) {
- QStringList fields =3D QStringList::split(":", line.stripWhiteSpac=
e());
- addSelection(fields.last(), fields.first());
+ addSelection(line.stripWhiteSpace());
}
=20
f.close();
- fclose(fp);*/
-
- // this would be better read in from tv_grab_uk, moreorless, as above
- addSelection("Anglia");
- addSelection("Border");
- addSelection("Border North");
- addSelection("Carlton");
- addSelection("Central");
- addSelection("Channel");
- addSelection("East Midlands");
- addSelection("Grampian");
- addSelection("Granada");
- addSelection("HTV Wales");
- addSelection("HTV West");
- addSelection("London");
- addSelection("Meridian");
- addSelection("Scottish");
- addSelection("South East");
- addSelection("Tyne Tees");
- addSelection("Ulster");
- addSelection("Westcountry");
- addSelection("Yorkshire");
+ fclose(fp);
}
=20
void ProviderSelector::fillSelections(const QString& location) {
--=-5o0OcnE/2aTcJQcfB7qI--
More information about the mythtv-dev
mailing list