Re: [vdr] [PATCH] Add SubsystemId for usb cards

2014-05-24 Thread VDR User
If the linux-media guys every get their act together in that area,
this wouldn't be necessary. Standardized statistics has been discussed
(at length) a number of times but unfortunately nothing was ever
agreed on and merged.

On Sat, May 24, 2014 at 8:12 AM, Jose Alberto Reguero
 wrote:
> This patch add SubsystemId for usb cards, to be able to make changes to
> GetSignalQuality and GetSignalStrength functions.
>
> Jose Alberto
> ___
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] shows recording

2014-05-24 Thread VDR User
> Epgsearch has an option to avoid duplicates, so it would record every
> episode once - no matter how old they are. Is that what you're looking for?
> If not, how can VDR decide if an episode is new or not?

I looked into this ages ago and iirc, there's no sure way for VDR to
know if an episode is new or not. But there are a couple ways you can
attempt it which should work well in most cases.

- Compare the "original air date" with the current date. This is
usually included in the epg info and probably the best way to identify
new episodes.
- Search for "New." in the show summary. This isn't as reliable as
using the original air date, but it's better than nothing as a
secondary method.

To my knowledge nobody has coded a plugin to do this. It would be
great if someone would though!

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] [PATCH] Add SubsystemId for usb cards

2014-05-24 Thread Jose Alberto Reguero
This patch add SubsystemId for usb cards, to be able to make changes to 
GetSignalQuality and GetSignalStrength functions.

Jose Alberto--- vdr-2.1.6/dvbdevice.c	2014-03-16 11:38:31.0 +0100
+++ vdr-actual/dvbdevice.c	2014-05-24 13:06:25.358513231 +0200
@@ -1750,12 +1735,26 @@ uint32_t cDvbDeviceProbe::GetSubsystemId
  if (char *s = ReadLine.Read(f))
 SubsystemId = strtoul(s, NULL, 0) << 16;
  fclose(f);
+ } else {
+FileName = cString::sprintf("/sys/class/dvb/%s/device/idVendor", e->d_name);
+if ((f = fopen(FileName, "r")) != NULL) {
+   if (char *s = ReadLine.Read(f))
+  SubsystemId = strtoul(s, NULL, 16) << 16;
+   fclose(f);
+}
  }
   FileName = cString::sprintf("/sys/class/dvb/%s/device/subsystem_device", e->d_name);
   if ((f = fopen(FileName, "r")) != NULL) {
  if (char *s = ReadLine.Read(f))
 SubsystemId |= strtoul(s, NULL, 0);
  fclose(f);
+ } else {
+FileName = cString::sprintf("/sys/class/dvb/%s/device/idProduct", e->d_name);
+if ((f = fopen(FileName, "r")) != NULL) {
+   if (char *s = ReadLine.Read(f))
+  SubsystemId |= strtoul(s, NULL, 16);
+   fclose(f);
+}
  }
   break;
   }
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] shows recording

2014-05-24 Thread Eike
Hello!

> I am trying to setup vdr so any new showings of show get recorded. Mythtv
> has option to record only new episodes How do I set this up with vdr ?

Epgsearch has an option to avoid duplicates, so it would record every 
episode once - no matter how old they are. Is that what you're looking for?
If not, how can VDR decide if an episode is new or not?

Ciao,
Eike


signature.asc
Description: This is a digitally signed message part.
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] shows recording

2014-05-24 Thread jacek burghardt
I am trying to setup vdr so any new showings of show get recorded. Mythtv
has option to record only new episodes How do I set this up with vdr ?
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] shows recording

2014-05-24 Thread Peer Oliver Schmidt
Am 23.05.2014 00:21, schrieb jacek burghardt:
> Coming from mythtv I wonder if there is a way to search for new shows of
> series. Does epgsearch has such fundion I use vdradminp-an I would love
> to be able to have it search and record new shows

Not sure I understand exactly what you are after, but I utilize
epgsearch to record every episode of my favourite shows automatically.

Works just nice.
-- 
Best regards

Peer Oliver Schmidt
PGP Key ID: 0x83E1C2EA

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr