Releases: scooterpsu/Comixology_Ubooquity_2
Now with more stuff!
A few fixes here or there, mostly released now to fix compatibility with latest Mylar series.json.
Changelog:
- Comics/Books navigation/homepage sections loaded if the user has access, not if the modules are enabled.
- Added missing authorBio template.
- Bookmark export now saves as series.json (and includes book type for any json with both books and comics).
- Added support for a Recommendation section on the homepage (export a series.json from Bookmarks, save it into the comixology2 folder named recommendations.json).
- Add support for weekly pages from Mylar's pull-list
- Fix .opf reading for recommendations page
- Add check if series.json metadata is an object or array (Mylar update)
New options:
- useBookTitles - Overwrite book labels with title from book metadata (helpful if using a Caibre library that trims titles)
- useCalibreMetadata - Adds support for Calibre .opf metadata files for PDFs where you can't write metadata. Copy the metadata.opf to that book's base folder with the same name as the pdf
- showRecommended - Toggles the Recommended section on the homepage
- recommendedTitle - Allows a custom title for the above sections (ie. "Staff Picks") instead of the default "Recommended for You"
A lot of enhancements to Authors pages, some QoL other spots
Since Comics are working great, I'm expanding some pieces for the Books module. This adds a new series.json for author bio pages.
This also adds some new options:
usePublicationRun - use publication_run dates from Mylar-created series.json
hideStoryTitles - clip Story Titles list from Mylar-created series.json description
uncommaAuthors - flip last,first into first last for author page listing
Also rather than removing all , now only the leading _ are clipped from names. This allows a check for " " to become ". " in calibre-named folder names.
Hopefully I encapsulated all of these changes so I didn't break anything.
Also this updates to the latest jquery, GitHub has been telling me there's a vulnerability in the version I was using. Though there being no forms means the only worry would be my code anyways.
Mylar series.json integration
Working with evilhero, Mylar can now produce folder.jpg and series.json for each series added. The folder.jpg auto-downloaded comes from ComicVine, and can be fairly low-res, but it's a solid placeholder for you to replace yourself.
No settings.js changes, so you can use your existing to upgrade.
Rolling in most of what I've meant to add in the last 2 years
Pulling from user suggestions/edits this now has:
2 new settings in settings.js (you can add these to your own file if you wish to change the values):
var flipNumName = false; /* Flip issue number and issue name. /
var readSeriesJSON = true; / Read series.json from series folder. */ <--- this is one requested before I dropped off the map, set to false to disable reading series.json
Title fields are now expanded instead of clipped with ellipses (thanks Bobby).
The publisher image/link on a series page pulls from one level below instead of the first subfolder. This enables special use cases (another Bobby addition).
The showRandom setting now toggles the Random Comics/Random Books entries in the Browse drop-down.
I've included a new zip which has a settings.js in it. If you don't want to change either of the new settings, you can use your existing file.
Added a filter to replace _ with spaces (which get trimmed automatically) everywhere series and issue titles are.
Links in comic/book details for Writers/Artists
Now writers/artists on the detail popup are links, when clicked they search Ubooquity for that person.
Since Ubooquity supports searching for metadata, this works surprisingly well.
These links needed a few tweaks in the dark variants, but otherwise just worked.
Style updates!
Just so the latest release has the new updates in it, I figured I should add a new one.
All elmerfdz's handy work.
Fixes for themeVariant setting loading, css fixes
Should finally load the themeVariant setting in the correct order (initial from settings.js if present, localStorage to override if set).
And some last css fixes from elmerfdz. Great stuff!
Theme variants!
Theme variant support is now complete, and there are 2 variants provided (dark-a and dark-b) by elmerfdz. They're pretty slick!
You can set which is the initial theme by adding the following to your settings.js:
var themeVariant = 'dark-a';
Otherwise it defaults to the white. You can switch this via a drop-down in the page footer, and the value is saved to localStorage (so it will stick for the given device).
Feel free to make your own and either start an Issue or add it via a Pull Request and I'll add it to the theme!
Fix for themeVariant overriding local storage setting
Did some things out of order and it threw everything off. Should be all good now.
Theme variant setting via footer drop-down, stored in localStorage
Now theme variants are pulled from themeVariants array, which if any exist populate a drop-down in the footer.
Switching via the drop-down switches the theme immediately, and stores the value in local storage for next time.
If no variant is set initially, it will look for themeVariant in settings.js and if not found default to white.