Page 1 of 1

User job arguement %RECTYPE% in user jobs

Posted: Sun Oct 02, 2016 4:31 am
by skinah
Currently it is supported in events but not in user jobs. If possible it would be great to add the support so my user job scripts can work out if a recording is a movie or a series. I dont believe there is a way to do this currently so this would seem easy to add feature.

%RECTYPE% would return 1 if it is a movie, currently it returns a value of %RECTYPE% if you try and use it in a user job.

thanks for considering.

Re: User job arguement %RECTYPE% in user jobs

Posted: Sun Oct 02, 2016 6:37 am
by daraden
You're looking for Category or CatType not RecType. they will return "series" or "movie" ect and not the bool value you are looking for. you also need guide data that provides the actual category data.

Re: User job arguement %RECTYPE% in user jobs

Posted: Mon Oct 03, 2016 1:30 am
by skinah
Category returns values like comedy, drama and so on with my guide data. I have looked at the rectype values in the database and they seem very consistant and will give me what I need and are an integer not a bool.

Cat type is not documented here will try it to see what it does.

https://www.mythtv.org/wiki/User_Jobs#U ... _arguments

Re: User job arguement %RECTYPE% in user jobs

Posted: Mon Oct 03, 2016 4:57 am
by daraden
if you look in https://code.mythtv.org/trac/browser/my ... ingtypes.h(lines 19-32). witch the %RECTYPE% references on the page you linked you will see that it is for recording schedules. So the likely reason it is consistent is you only tend to set a movie to record once.