Skip to content

Conversation

@okibcn
Copy link
Contributor

@okibcn okibcn commented Jan 31, 2026

Pull Request: Fix and Improve Vidmoly Extractor

Summary

Fixed broken Vidmoly extractor and added support for multiple domain variants.

Problem

The previous Vidmoly extractor was not working due to:

  • Incorrect URL format (-920x360.html suffix)
  • JSON parsing failure caused by single quotes in JavaScript values
  • Unnecessary retry logic with delays
  • Only supported vidmoly.to domain

Changes Made

1. Fixed URL Generation

Before:

url.replaceFirst("/w/", "/embed-") + "-920x360.html"

After:

url.replaceFirst("/w/", "/embed-") + ".html"

2. Fixed JSON Parsing

Added .replace("'","\"") to convert JavaScript single quotes to valid JSON double quotes:

?.replace("'","\"")

This is applied to both video data and subtitle data extraction.

3. Removed Unnecessary Retry Logic

Eliminated the 10-attempt loop with 500ms delays - the extractor now loads on first attempt.

4. Added Multi-Domain Support

Added support for multiple Vidmoly domains:

  • vidmoly.me (new)
  • vidmoly.to (existing)
  • vidmoly.biz (new)
  • vidmoly.net (new base class)

5. Code Simplification

  • Removed unnecessary variables and loops
  • Improved code readability with functional chaining
  • Moved data classes before getUrl() for better organization

Testing

✅ Tested with vidmoly.me URLs - successfully extracts M3U8 links
✅ Video playback working correctly
✅ Subtitle extraction working

Lines Changed

  • Removed: ~10 lines (retry logic, verbose code)
  • Modified: ~15 lines (URL format, JSON parsing)
  • Added: ~15 lines (new domain variants)
  • Net result: Cleaner, more maintainable code

AI disclaimer: This PR report is 99% AI generated. Code is 100% human made.

@fire-light42 fire-light42 merged commit c44d07b into recloudstream:master Feb 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants