kieraneglin / pinchflat

Your next YouTube media manager
GNU Affero General Public License v3.0
1.26k stars 23 forks source link

[Triage] setting "exclude livestreams" is ignored #359

Closed Prophet-Phoenix closed 2 months ago

Prophet-Phoenix commented 2 months ago

Describe the bug My one and only media profile is set to exclude livestreams. Still, livestreams are downloaded (in this case WAN show from ltt). The media item has livestream: true and the profile has livestream_behaviour: exclude and the source is connected to the profile.

To Reproduce Steps to reproduce the behavior: I don't really know. Add profile, add LinusTechTips as source (i guess)?

Expected behavior livestreams not being downloaded.

Diagnostic info

Additional context

Will add logs, if necessary and they are anonymous (are they?).

kieraneglin commented 2 months ago

Hey there! Thanks for the report (:

That's strange! I'm out for the weekend so I'll look more on Monday, but I suspect there's a different issue at play.

Could you go to one of the media items in question, click Actions > Copy JSON, and paste that here?

Prophet-Phoenix commented 2 months ago

Of course, here it is:

{
  "id": 47517,
  "description": "Get your game on! Check out the MSI MAG X670E TOMAHAWK WIFI Motherboard at https://lmg.gg/sXyzQ

Build your business the website it deserves! Visit https://www.squarespace.com/WAN and use offer code WAN for 10% off

Keep your precious files safe! Get a 15-day free trial for unlimited backup at https://www.backblaze.com/landing/podcast-wan.html

Check out the Secretlab Titan Evo Ergonomic Gaming chair and more at https://lmg.gg/secretlabwan

Get a special deal on Private Internet Access VPN today at https://www.piavpn.com/LinusWan

The Special Edition of the DeltaHub x LTT Carpio 2.0 Wrist Rest is now live! There’s only 2000 units available so go check it out at: https://go.deltahub.io/carpio-ltt-edition-wanshow

Subscribe to Floatplane and get early access to ALL Scrapyard Wars releases this season, plus tons of extras and who knows, maybe we’ll be giving some stuff out there too. Join us over at https://lmg.gg/scrapwars24

Our Scrapyard Wars Episode 3 Giveaway is live now! Enter for a chance to win 1 of 2 Jawa screwdrivers.
https://lmg.gg/sywgiveaway3

Jawa’s massive Scrapyard Wars giveaway is live! They’re THE marketplace for gamers to buy and sell their gear. Check them out at https://jawa.link/ScrapyardWAN

Purchases made through some store links may provide some compensation to Linus Media Group.

Podcast Download: TBD
Timestamps (courtesy of NoKi1119): TBD",
  "title": "Google Is A Monopoly - WAN Show August 9, 2024",
  "source": {
    "id": 13,
    "description": "Linus Tech Tips is a passionate team of "professionally curious" experts in consumer technology and video production who aim to educate and entertain.
",
    "uuid": "d8b55226-ce5b-48c3-a6c7-4151c2967974",
    "inserted_at": "2024-08-02T20:45:31Z",
    "updated_at": "2024-08-03T02:03:19Z",
    "download_media": true,
    "media_profile": {
      "id": 1,
      "name": "def",
      "inserted_at": "2024-07-30T20:21:34Z",
      "updated_at": "2024-07-30T20:21:34Z",
      "output_path_template": "/{{ channel }}/{{ title }} - {{ id }}.{{ ext }}",
      "preferred_resolution": "1080p",
      "sponsorblock_categories": [],
      "sponsorblock_behaviour": "disabled",
      "download_thumbnail": true,
      "embed_thumbnail": true,
      "download_nfo": true,
      "download_auto_subs": false,
      "download_subs": true,
      "embed_subs": true,
      "sub_langs": "en,de",
      "download_metadata": true,
      "embed_metadata": false,
      "marked_for_deletion_at": null,
      "download_source_images": false,
      "livestream_behaviour": "exclude",
      "redownload_delay_days": null,
      "shorts_behaviour": "exclude"
    },
    "nfo_filepath": null,
    "original_url": "YouTube.com/linustechtips",
    "media_profile_id": 1,
    "custom_name": "LTT",
    "collection_id": "UCXuqSBlHAE6Xw-yeJA0Tunw",
    "collection_name": "Linus Tech Tips",
    "collection_type": "channel",
    "use_cookies": true,
    "fast_index": true,
    "banner_filepath": null,
    "download_cutoff_date": "2024-08-01",
    "fanart_filepath": null,
    "index_frequency_minutes": 43200,
    "last_indexed_at": "2024-08-03T02:03:19Z",
    "marked_for_deletion_at": null,
    "max_duration_seconds": null,
    "min_duration_seconds": null,
    "output_path_template_override": null,
    "poster_filepath": null,
    "retention_period_days": null,
    "series_directory": null,
    "title_filter_regex": null
  },
  "uuid": "08e5a00c-f898-4e94-be40-abdab33d5530",
  "inserted_at": "2024-08-10T00:36:59Z",
  "updated_at": "2024-08-10T03:34:41Z",
  "media_filepath": "/downloads/Linus Tech Tips/Google Is A Monopoly - WAN Show August 9, 2024 - J2SvnnVBDk0.mp4",
  "media_redownloaded_at": null,
  "media_size_bytes": 1618844311,
  "prevent_download": false,
  "culled_at": null,
  "duration_seconds": 9680,
  "livestream": true,
  "matching_search_term": null,
  "media_downloaded_at": "2024-08-10T03:34:30Z",
  "media_id": "J2SvnnVBDk0",
  "metadata_filepath": "/downloads/Linus Tech Tips/Google Is A Monopoly - WAN Show August 9, 2024 - J2SvnnVBDk0.info.json",
  "nfo_filepath": "/downloads/Linus Tech Tips/Google Is A Monopoly - WAN Show August 9, 2024 - J2SvnnVBDk0.nfo",
  "original_url": "https://www.youtube.com/watch?v=J2SvnnVBDk0",
  "playlist_index": 0,
  "prevent_culling": false,
  "short_form_content": false,
  "source_id": 13,
  "subtitle_filepaths": [],
  "thumbnail_filepath": "/downloads/Linus Tech Tips/Google Is A Monopoly - WAN Show August 9, 2024 - J2SvnnVBDk0-thumb.jpg",
  "upload_date_index": 99,
  "uploaded_at": "2024-08-10T03:18:27Z"
}
kieraneglin commented 2 months ago

This was a weird one! This has been resolved and will be included with the next release (sometime time week). Thanks again for the report!

Prophet-Phoenix commented 2 months ago

Very nice!