Skip to content

feat(1FLEX): add activity#10949

Open
AlFarrizi-Studio wants to merge 5 commits into
PreMiD:mainfrom
AlFarrizi-Studio:add-1flex-activity
Open

feat(1FLEX): add activity#10949
AlFarrizi-Studio wants to merge 5 commits into
PreMiD:mainfrom
AlFarrizi-Studio:add-1flex-activity

Conversation

@AlFarrizi-Studio

@AlFarrizi-Studio AlFarrizi-Studio commented Jun 28, 2026

Copy link
Copy Markdown

Adds a PreMiD activity for 1Flex.

Features

  • Detects the main 1Flex sections:

    • Home
    • Movies
    • TV Shows
    • LiveTV
    • Sports
    • Games
    • Torrents
    • Anime
    • My List
    • Browse by Languages
    • Search
    • More Info pages
    • Playback pages
  • Shows useful Discord Rich Presence details:

    • Current page/section
    • Active movie or TV show title
    • More Info modal title
    • LiveTV and Sports stream status
    • Search query and search result state
    • Browse by Languages filters
    • Torrent search result count
    • Playback state
    • Cover image when available
    • Timestamp/progress when available
    • Quick action buttons where supported
  • Handles trailer preview behavior so Home and TV Shows do not incorrectly switch to More Info while trailer previews are playing.

  • Uses the official 1Flex website description.

  • Uses 512x512 logo and thumbnail assets generated from official 1Flex website assets.

  • Includes strings for activity states and reusable labels.

Tested Pages

  • Home
  • Movies
  • TV Shows
  • More Info modal
  • LiveTV
  • Sports streams
  • Games
  • Torrents search
  • Anime
  • My List
  • Browse by Languages
  • Search
  • Movie playback
  • TV show playback

Screenshots

Proof showing the creation/modification is working as expected

Home

Shows Home detection and browsing state.

Home

TV Shows / More Info

Shows TV Shows detection and More Info modal state.

TV Shows More Info

Sports Stream

Shows Sports stream detection with LIVE state.

Sports Stream

Browse by Languages

Shows Browse by Languages filters being detected.

Browse by Languages

Torrent Search

Shows Torrent Search result count detection.

Torrent Search

Movie Playback

Shows movie playback title, cover, and timestamp/progress.

Movie Playback

TV Show Playback

Shows TV show playback title, season/episode, cover, and timestamp/progress.

TV Show Playback

Validation

pmd build 1Flex --validate

@dimerp

dimerp Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

🖼️ Activity asset preview

Asset inspection complete. No pixels were harmed in the making of this comment. 🤖

1Flex (websites/0-9/1Flex) — creation

Preview Source URL
logo https://i.imgur.com/etdu1L5.png
thumbnail https://i.imgur.com/r3cFlG5.png

Beep boop — I refresh this comment on every push, so no need to scroll. 🤖

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@AlFarrizi-Studio AlFarrizi-Studio force-pushed the add-1flex-activity branch 2 times, most recently from 93f6949 to e4bd8b5 Compare June 29, 2026 02:30
@AlFarrizi-Studio AlFarrizi-Studio changed the title feat(1flex): add activity feat(1FLEX): add activity Jun 29, 2026
@DxriaaaN

Copy link
Copy Markdown
Contributor

If im not wrong you should remove the assets folder and upload the images to for example imgur and paste the link in metadata and presence.ts

@DxriaaaN

DxriaaaN commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Also I noticed you are using type assertions (casting) instead of generics. You should update this

Comment thread websites/0-9/1Flex/metadata.json Outdated
"url": "www.1flex.org",
"regExp": "^https?[:][/][/](www[.])?1flex[.]org[/]",
"version": "1.0.0",
"logo": "https://raw.githubusercontent.com/AlFarrizi-Studio/Activities/add-1flex-activity/websites/0-9/1Flex/assets/logo.png",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accord to the comment i made to you early

"logo": "https://imgur.com/etdu1L5.png"
"thumbnail": "https://imgur.com/r3cFlG5.png"

Comment thread websites/0-9/1Flex/presence.ts Outdated

@Bas950 Bas950 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See @DxriaaaN 's comments above.

@AlFarrizi-Studio

Copy link
Copy Markdown
Author

Ok, I’ll update the changes again and thanks for the reminder 🙏

@AlFarrizi-Studio

Copy link
Copy Markdown
Author

Done, and is there anything that needs to be fixed again?

🤔

Signed-off-by: Al Farrizi <sarkasspamgaming06@gmail.com>
Signed-off-by: Al Farrizi <sarkasspamgaming06@gmail.com>

@Bas950 Bas950 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think some of the strings can be replaced with general ones.
And maybe split your presence.ts into multiple files as 3000+ lines is a lot....

Comment on lines +14 to +17
"1flex.homePremium": {
"description": "Premium style home page status.",
"message": "Browsing 1Flex Homepage"
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just use the generic browsing (homepage) string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants