{
 "app_id": "com.markopejic.downloader",
 "source_url": "https://raw.githubusercontent.com/flathub/com.markopejic.downloader/master/com.markopejic.downloader.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:08:17.060336+00:00",
 "manifest": {
  "id": "com.markopejic.downloader",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "base": "io.qt.PySide.BaseApp",
  "base-version": "6.11",
  "command": "media-downloader",
  "finish-args": [
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--filesystem=xdg-download"
  ],
  "cleanup": [
   "/man",
   "*.a"
  ],
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "build-options": {
   "env": [
    "BASEAPP_REMOVE_WEBENGINE=1",
    "BASEAPP_DISABLE_NUMPY=1"
   ]
  },
  "modules": [
   "python-modules.json",
   {
    "name": "ffmpeg",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 bin/ffmpeg bin/ffprobe /app/bin/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/yt-dlp/FFmpeg-Builds/releases/download/autobuild-2026-08-30-18-16/ffmpeg-N-126337-g818cecc6e1-linux64-gpl.tar.xz",
      "sha256": "e89888df3771c904b467f7a7171dfa0ba114b73d763257b4537a82383f9f0795",
      "only-arches": [
       "x86_64"
      ]
     },
     {
      "type": "archive",
      "url": "https://github.com/yt-dlp/FFmpeg-Builds/releases/download/autobuild-2026-08-30-18-16/ffmpeg-N-126337-g818cecc6e1-linuxarm64-gpl.tar.xz",
      "sha256": "d4d5fd0b54d99e707f420c81c3202ecdf3cf02501be1841c90436133909e3d4f",
      "only-arches": [
       "aarch64"
      ]
     }
    ]
   },
   {
    "name": "com.markopejic.downloader",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm644 resources/linux/com.markopejic.downloader.desktop $FLATPAK_DEST/share/applications/com.markopejic.downloader.desktop",
     "install -Dm644 resources/linux/com.markopejic.downloader.metainfo.xml $FLATPAK_DEST/share/metainfo/com.markopejic.downloader.metainfo.xml",
     "install -Dm644 resources/icon.svg $FLATPAK_DEST/share/icons/hicolor/scalable/apps/com.markopejic.downloader.svg",
     "install -Dm644 resources/icon.png $FLATPAK_DEST/share/icons/hicolor/512x512/apps/com.markopejic.downloader.png",
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} . --no-build-isolation"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/markop404/media-downloader/",
      "tag": "v5.1.3"
     }
    ]
   }
  ]
 }
}