Repository navigation
Show a release's NFO and MediaInfo from the picker - #589
Merged
Merged
Conversation
The picker's viewer will show a release's NFO and MediaInfo. This adds what it is built on: the text kept per release and indexer, identical texts put together, what a text says beside the listing's name, a reader that asks every indexer listing the release, a MediaInfo report as text, and a renderer that draws text with a fixed terminal font.
…-mediainfo-viewer
Left or Right on a release opens a viewer over the list. It has one tab per unique text, naming every indexer that carries it, the text drawn with the add-on's own terminal font and paged for the screen it is on, and under it what the text says of the release, each attribute marked as confirming the listing's name or as new. The picker's rows carry NFO and MEDIAINFO tags for what there is to open, and the footer lists the shortcut. In List compacted the tags, HYBRID and REPACK share one label, since that row has no room for another column.
… listing's NFO Found by running the viewer in Kodi: The active view's list is shown one frame after the view is set. A short list is built before that frame, the list then refuses the focus, and no key reaches it. The focus is now asked for until the list has it. A listing named without a release group whose NFO names the same film is shown in the viewer, with what the NFO adds marked as new. Its audio is still not used for ranking. The image of a text's attributes is named by what it shows: Kodi keeps a drawn image by its path, and showed another release's marks.
In the plain List view a tag label beside the size column clipped the size in Kodi. The tags now share one label under the name, as they do in List compacted, where Kodi draws them right. Without the add-on's font, NFO art is written with plain characters: skin fonts lack the box and block characters and Kodi drew an empty box for each.
A docs page with screenshots, a recording and a chart of where the texts come from; changelog entries; links from the features overview and the filtering page. When texts arrive after the window opened, the first tab is shown, unless a key already changed the tab or the page. The pictures use a trial font and are to be taken again with the font that ships.
…-mediainfo-viewer
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Collaborator
Author
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
1 similar comment
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…-mediainfo-viewer
- A MediaInfo report with NaN or an infinite number raised out of the viewer every time it opened on that release. Such a value is now written as it came, and a report that cannot be laid out is shown as it was kept. - Closing the viewer and opening it again while indexers were still answering asked them again. A request in hand is now known, and not sent twice. - The viewer gave up after eight seconds and never showed an answer that came later. It now draws the tabs again as each indexer answers, and waits for all of them. - The store's index is made again from the files when it cannot be read, takes in what another run of the add-on kept, and only ever removes files that carry its own kind of name. - A reply that repeats the request's key is kept without it.
- The index merge lets the newer entry win and drops entries whose file is gone, so another run's update is not lost or its file removed. - A request thread starts while it is registered, so it is never seen as finished before it began. - A drawing failure in the viewer is logged instead of escaping Kodi's callback. - An echoed apikey is removed however short it is.
…-mediainfo-viewer
…-mediainfo-viewer
…-mediainfo-viewer
…indexer mis-decoded
…-mediainfo-viewer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Left or Right on a release in the picker opens its NFO and MediaInfo over the list. Stacked on #588 (base
grouping-release-index) so both land together.Recorded in a test Kodi against stand-in indexers. Metropolis (1927); the releases, the NFO and the group are made up.
NFOandMEDIAINFOtags, and the bottom bar lists the shortcut.Note
One thing is open: the font file.
resources/fonts/terminal-8x16.binis not in this PR yet. The pictures use a trial font taken from the test machine, which lacks five block characters. The maintainer is choosing which complete font ships. Without the file the viewer works in the skin's own text box, with NFO art written in plain characters. The pictures will be taken again with the font that ships.Changes
flowchart TD key([Left or Right on a release]) --> kept{Anything kept<br/>for this release?} kept -- yes --> show[Show it at once] kept -- no --> any{Does any listing<br/>offer an NFO or MediaInfo?} any -- no --> none([Notification: nothing to show]) any -- yes --> wait[Open the window<br/>and say who is being asked] show --> ask wait --> ask[Ask each indexer not asked yet<br/>its MediaInfo, its NFO] ask --> check{About this release?} check -- yes --> keep[Keep the text<br/>per release and indexer] check -- no or none --> skip[Remember that this indexer<br/>has nothing for it] keep --> tabs[Identical texts become one tab<br/>naming every indexer] skip --> tabs tabs --> draw([Draw the tabs again]) classDef stage fill:#151520,stroke:#4A9EFF,color:#FFFFFF classDef endpoint fill:#1E1E2E,stroke:#34D399,color:#FFFFFF classDef halt fill:#1E1E2E,stroke:#FBBF24,color:#FFFFFF class show,wait,ask,keep,tabs stage class key,draw endpoint class none,skip,kept,any,check haltNew modules:
release_docs.pydoc_fetch.pydoc_attributes.pymediainfo_text.pytext_image.pynfo_viewer.py,nfo-viewer.xmlpicker_colors.pyChanges to existing code:
nfo_audio.pykeeps the texts it already reads during the search, so the viewer opens on them without a request. Ranking is unchanged.results_dialog.pyandresults-dialog.xml: Left and Right open the viewer; a row's tags (HYBRID,REPACK,NFO,MEDIAINFO) share one label under the name in both views.Two choices that differ from the approved mockup:
NFOis yellow, not orange:REPACKalready uses that orange and the two sit side by side.Testing
just testpasses: 5,162 tests. One test in the grouping branch,test_failed_history_read_leaves_the_snapshot_unknown, failed once in a full run and passes alone and on three re-runs of its file.just lintpassesREADME.md,CHANGELOG.md, anddocs-site/(new pagefeatures/nfo-viewer.md, built withjust docsand checked in a browser, including the chart)Not tested: a 4K or 720p Kodi screen (the page size for those is covered by unit tests only), and the Bingie skin.