Audible Metadata to MAM JSON script (with multiple AI model options)

Copies audiobook metadata to JSON and opens MAM upload page. Optionally offers multiple AI models for category selection.

这些是代码更新过的版本。 显示所有版本

  • v1.4.2 2024-10-19

    Added "ScD" and "DrPH" to titles to remove.

  • v1.4.1 2024-10-13
    • Updated: Improved the cleanName function to more effectively remove titles and credentials from author and narrator names.
    • Added: "MS" (Master of Science) and "MN" (Master of Nursing) to the list of titles to be removed.
    • Fixed: Bug where certain titles (like "RN") were not being removed from the middle of names.
    • Enhanced: Name cleaning process now removes titles from the beginning, middle, and end of names.
    • Improved: Better handling of spaces after title removal to prevent extra spaces in cleaned names.

    This update focuses on improving the accuracy of author and narrator name cleaning, ensuring a more consistent and clean output in the generated JSON metadata.

  • v1.4.0 2024-10-05
    • Added an overlay with a loading message when processing JSON data
    • Implemented a blurred background effect for the overlay
    • Included an AI processing GIF in the overlay when an AI model is selected
    • Made the button text dynamic:
      • "Copy Book info to JSON with AI" when an AI model is selected
      • "Copy Book info to JSON without AI" when no AI model is used
  • v1.2.0 2024-10-05
    • Added support for multiple AI models for category selection (if you are going to do this, I would recommend Chatgpt 4o mini since that is the cheapest by far:
      • ChatGPT (OpenAI)
      • Meta Llama
      • Google Gemini (128K and 1M versions)
      • Mistral AI
      • Anthropic Claude 3
    • Introduced AI_MODEL constant for selecting the preferred AI service
    • Added API key constants for each AI service
    • Implemented individual functions for each AI service API call
    • Updated getMAMCategory function to use the new AI selection process
  • v1.1.0 2024-10-04
    • Implemented smart category matching to improve accuracy in audiobook choices:
      • Added AUDIBLE_TO_MAM_CATEGORY_MAP for direct category mapping
      • Added KEYWORD_TO_MAM_CATEGORY_MAP for keyword-based category matching
      • Created smartCategoryMatcher function to determine the best MAM category based on Audible category, title, and description
      • Updated getMAMCategory function to use the new smart matching system
    • Improved author extraction:
      • Updated getAuthors function to filter out bogus entries like "Title" and "Author + Title"
      • Enhanced cleaning of author names by removing additional titles and honorifics
    • Enhanced narrator extraction:
      • Updated getNarrators function to exclude "Full Cast" from the list of narrators
      • Improved cleaning of narrator names
  • v1.0.6 2024-10-04
  • v1.0.6 2024-10-04
    • Updated getNarrators() function to exclude "Full Cast" from the list of narrators
    • Added BSN, MSN, and RN to the list of titles removed from both author and narrator names
  • v1.0.5 2024-10-04
    • Implemented new getAuthors() function to improve author detection and filtering:
      • Now uses data-authorid attribute to identify genuine author links
      • Prevents duplicate author entries
      • Filters out non-author entries (e.g., "Prologue Projects")
    • Created similar getNarrators() function for improved narrator detection
    • Updated both author and narrator processing to use textContent.trim() instead of innerHTML for better text extraction
    • Modified generateJson() function to use the new getAuthors() and getNarrators() functions
    • These changes should prevent incorrect entries like "Title" and "Author + Title" from appearing in the authors list
  • v1.0.4 2024-10-04
  • v1.0.4 2024-10-04
    1.0.4
    • Added ASIN extraction and included it in the JSON output with "ASIN:" prefix.
    • Updated button styling and placement to match Audible's interface and how Dr.Blank's script was.
    • Enhanced metadata cleaning for authors, narrators, and series names.
    • Improved subtitle handling to avoid series name conflicts.
    • Extended support for all Audible top-level domains.
  • v1.0.3 2024-10-04

    Version History

    1.0.3
    • Added a comprehensive version history section on the Greasyfork script page.
    • Implemented a properly formatted HTML description for improved readability and user understanding.
    1.0.2
    • Restored functionality to open the MyAnonaMouse (MAM) upload page after metadata extraction, aligning with Dr.Blank's original version.
    • Implemented cleaning functions to remove information from names, narrators, and authors that are not permitted on MAM, enhancing compatibility with the platform's requirements.
    1.0.1
    • Fixed an issue where the audiobook description was not being formatted correctly during extraction.
    1.0.0
    • Initial rewrite of Dr.Blank's version.
    • Added support for Audible pages with banners, expanding the script's functionality to more page layouts.
  • v1.0.2 2024-10-04
  • v1.0.2 2024-10-04