-
Notifications
You must be signed in to change notification settings - Fork 347
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
Manual Recordings: add optional UI element to set subtitle #646
base: master
Are you sure you want to change the base?
Conversation
For earlier versions of MythTV, the theme changes for other themes will result in a textedit widget that does not effect the resultant recording rule, which may be confusing. However, this is still technically backwards compatible. |
f4375a6
to
3de0280
Compare
3de0280
to
0fe1c3c
Compare
The same change should be made in the web app. The web app has all the capabilities of the frontend for scheduling. |
It is reasonable that the web app should have the same capabilities as the frontend for scheduling. However, I have no idea where to start or where to look. As an aside why are the .js files all one line? |
Here are the basics of the web app: |
On Tuesday 04 June 2024 09:14:20 AM (-05:00), Peter Bennett wrote:
Here are the basics of the web app:
https://www.mythtv.org/wiki/Web_Application_Development
https://www.mythtv.org/wiki/Web_Application
The js files in mythtv/html/apps/backend are compiled from the source in
mythtv/html/backend/src subdirectories.
We don't edit or look at those compressed js files, that will drive you
crazy.
Angular uses a programming language called typescript, which is
javascript with type checking added. It gets compiled into compressed
javascript in main.js. Following Stuart's lead, we compile it locally and
commit the compiled code so that the mythtv build process does not have to
compile it.
I use git logx to view the MythTV commits. It's an addition to my
.git/config file done like this:
git config alias.logx "log -p ':(exclude)html/apps/backend/main.js'"
It only works from the mythtv directory itself. I haven't found an
equivalent
for git grep (other than piping to grep -v '^html/apps/backend/main.js'
--
Bill
|
Assuming all the files in https://git-scm.com/docs/gitattributes#_using_macro_attributes I don't know JavaScript or TypeScript, but I'll see if there is an obvious change. |
I think the changes should be in:
but I couldn't figure it out. Regardless, the web app appears to still work. This makes sense since it doesn't use the "Manual Record" ProgramInfo constructor. "Manual Search" is similar, but not equivalent, to "Manual Record". Some comments on the UI:
|
It uses the same html file for all types of schedule. The subtitle and description are read only because their values come from the program guide. Once your changes are implemented I will make the same changes to the web app and leanfront. Let me know when that happens or open a ticket. Angular is complex and takes some time to learn. If you have other suggestions for improving the web app open a ticket. |
Should I open a new PR for the .gitattributes file 6742445 or will you cherry-pick it?
I don't know about leanfront, but I don't think you have to wait for these changes to implement something similar in the web app. |
I have now committed .gitattributes so you can take that out of the pull request |
I will leave it to you to verify that it actually works and that the subtitle actually gets on to the recording. Once that is all done and working it will be easy to add it to the web app GUI and to leanfront. |
6742445
to
f82d554
Compare
I rebased onto master, removing the now redundant commit to add
I don't understand what you mean. When creating a manual recording in mythfrontend via Manage Recordings -> Schedule Recordings -> Manual Schedule, if the new subtitle text box is left empty, the behavior is unchanged and, if something is entered into the subtitle text box, the recording will now have the entered subtitle instead of an empty string. |
That is perfect. |
If the element is absent, the behavior is unchanged.
Move "title" up slightly and squeeze in "subtitle", moving the rest down slightly, except "duration", which I moved up slightly to make the spacing more even.
Move "title" up and squeeze in "subtitle", moving the rest down slightly, except "duration", which I didn't move to make the spacing more even.
Move "title" up and squeeze in "subtitle", moving the rest down slightly, except "duration", which I didn't move to make the spacing more even.
Move "title" up and squeeze in "subtitle", moving the rest down slightly, except "duration", which I didn't move to make the spacing more even.
Move "title" up and squeeze in "subtitle", moving the rest down slightly, except "duration", which I didn't move to make the spacing more even.
so it doesn't encroach on the new position of "title" and "titlelabel". The position was copied from MythCenter-wide. MythCenter and default use the slightly different position of 20,5 instead.
f82d554
to
73e33ee
Compare
Rebased onto master to force rebuild. |
If the element is absent, the behavior is unchanged.
I don't know how to test default and default-wide, but the changes are identical to the other themes.
Should this also bump the theme minor versions?
Checklist