Skip to content

Commit

Permalink
Merge pull request #93 from ragmehos/mongodb
Browse files Browse the repository at this point in the history
Pass in the database in the mongo URI and add torbox ref as mediafusion for sign ups
  • Loading branch information
mhdzumair authored Jan 28, 2024
2 parents 098a921 + 8260ce6 commit 20665c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
async def init():
# Create Motor client
client = motor.motor_asyncio.AsyncIOMotorClient(settings.mongo_uri)

# Init beanie with the Product document class
await init_beanie(
database=client.mediafusion,
database=client.get_default_database(), # Note that the database needs to be passed as part of the URI
document_models=[
MediaFusionMovieMetaData,
MediaFusionSeriesMetaData,
Expand Down
2 changes: 1 addition & 1 deletion deployment/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
cpu: "500m"
env:
- name: MONGO_URI
value: "mongodb://mongodb-service:27017"
value: "mongodb://mongodb-service:27017/mediafusion"
- name: SECRET_KEY
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion resources/js/config_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const providerSignupLinks = {
realdebrid: 'http://real-debrid.com/?id=9490816',
debridlink: 'https://debrid-link.com/id/kHgZs',
alldebrid: 'https://alldebrid.com/?uid=3ndha&lang=en',
torbox: 'https://torbox.app/',
torbox: 'https://torbox.app/login?ref=mediafusion',
premiumize: 'https://www.premiumize.me',
};

Expand Down

0 comments on commit 20665c2

Please sign in to comment.