Skip to content

[BUG] weeknumber is a string not integer #53

@khukharev

Description

@khukharev

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Describe the bug
Recurring error

TypeError: unsupported type for timedelta weeks component: str
File "/app/mylar3/mylar/helpers.py", line 3164, in weekly_info
startweek = stweek + timedelta(weeks = weeknumber)

CarePackage
On the config page, there is a button labelled "CarePackage". Pressing this button will download a zip file containing a redacted copy of your config, your database, a summary of your operating environment, and your logs. Upload that file here.

If you're uncomfortable with pasting your CarePackage, include a DEBUG log containing the error from disk.

Do not paste from the GUI log.
Do not just paste a traceback/error.

carepackage_v0.8.3.zip

Environment (please complete the following information):

  • OS: Docker image in Dockge in TrueNAS Scale
  • Branch / commit: lscr.io/linuxserver/mylar3:latest

Additional information
Add any other information about the problem here.

Expected Behavior

No response

Steps To Reproduce

As far as I understand, it happens without any actions from the user every 4hrs (Weekly Pull List)

Environment

- OS: Docker image in Dockge in TrueNAS Scale
- How docker service was installed: Dockge app

CPU architecture

x86-64

Docker creation

services:
  mylar3:
    image: lscr.io/linuxserver/mylar3:latest
    container_name: mylar3
    environment:
      - PUID=568
      - PGID=568
      - TZ=Europe/Moscow
      - HTTP_PROXY=http://tailscale-proxy:3128
      - HTTPS_PROXY=http://tailscale-proxy:3128
      - NO_PROXY=localhost,127.0.0.1
    volumes:
      - ./configs/:/config
      - /mnt/truenas/media:/media
    ports:
      - 8090:8090
    restart: unless-stopped
    networks:
      - tailscale_net
networks:
  tailscale_net:
    external: true

Container logs

mylar3  |   File "/app/mylar3/mylar/helpers.py", line 3164, in weekly_info
mylar3  |     startweek = stweek + timedelta(weeks = weeknumber)
mylar3  | TypeError: unsupported type for timedelta weeks component: str
mylar3  | 17-Feb-2026 12:33:50 - INFO :: mylar.run.37 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] RSS Feed Check Initalizing....
mylar3  | 17-Feb-2026 12:33:50 - INFO :: mylar.run.54 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Initiating Torrent RSS Check.
mylar3  | 17-Feb-2026 12:33:50 - INFO :: mylar.run.102 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Initiating RSS Feed Check for NZB Providers.
mylar3  | 17-Feb-2026 12:33:50 - INFO :: mylar.run.105 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Initiating RSS Feed Check for DDL Provider.
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.ddl.461 : ThreadPoolExecutor-0_0 : [DDL][RSS-RESULTS] [{'Title': 'The Amazing Spider-Man by Ditko and Romita – Chronological Version (2026)', 'Size': 108447924224, 'Link': '390664', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 13:57:16'}, {'Title': 'Daredevil – Unleash Hell – Red Band (TPB) (2025)', 'Size': 61865984, 'Link': '390661', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 13:38:21'}, {'Title': 'Iron Man – Enter the Mandarin #1 – 6 + TPB (2007-2017)', 'Size': 287309824, 'Link': '7108', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 07:26:16'}, {'Title': 'Avengers Epic Collection Vol. 27 – Timeslide (2025)', 'Size': 13958643712, 'Link': '390655', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 07:20:00'}, {'Title': 'Legion of Super-Heroes – Five Years Later Omnibus Vol. 1 (2020)', 'Size': 20401094656, 'Link': '390652', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 07:05:07'}, {'Title': 'Hobtown Mystery Stories Vol. 3 – The Secret of the Saucer (2025)', 'Size': 152043520, 'Link': '390649', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 07:03:14'}, {'Title': 'The Masterworks Series of Great Comic Book Artists #1 – 3 (1983)', 'Size': 39845888, 'Link': '390637', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:09:53'}, {'Title': 'Tiny Tina’s Wonderlands – Land of the Giants (TPB) (2025)', 'Size': 988807168, 'Link': '364468', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:07:51'}, {'Title': 'The Butcher’s Boy (TPB) (2025)', 'Size': 11811160064, 'Link': '368512', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:06:22'}, {'Title': 'Slightly Exaggerated (2024)', 'Size': 845152256, 'Link': '368507', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:04:30'}, {'Title': 'Rompepistas (2024)', 'Size': 615514112, 'Link': '369420', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:02:24'}, {'Title': 'DC Finest – Superman – The First Superhero (TPB) (2024)', 'Size': 731906048, 'Link': '390627', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sat, 14 Feb 2026 12:28:19'}]
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.ddl.463 : ThreadPoolExecutor-0_0 : [RSS][DDL] 12 entries have been indexed and are now going to be stored for caching.
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.run.107 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] RSS Feed Check/Update Complete
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.run.108 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Watchlist Check for new Releases
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.searchforissue.1577 : ThreadPoolExecutor-0_0 : Initiating RSS Search Scan at the scheduled interval of 200 minutes
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.searchforissue.1706 : ThreadPoolExecutor-0_0 : Issues that belong to part of a Story Arc to be searched for : 0
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.nzbdbsearch.911 : ThreadPoolExecutor-0_0 : cur returned. db attached.
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.nzbdbsearch.918 : ThreadPoolExecutor-0_0 : dropped previous rss dataset to ensure we have a clean slate.
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.nzbdbsearch.932 : ThreadPoolExecutor-0_0 : executed insert...now attempting to select
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.nzbdbsearch.1022 : ThreadPoolExecutor-0_0 : [RSS-QUERY] Searched through RSSDB looking for 21 Wanted items in 4085 RSS entries. Rough matching to 0 items.
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.searchforissue.2257 : ThreadPoolExecutor-0_0 : Completed RSS Search scan
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.run.112 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Watchlist Check complete.
mylar3  | 17-Feb-2026 12:33:56 - INFO :: mylar.run.114 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Successfully ran a forced RSS Check.
mylar3  | 17-Feb-2026 14:35:31 - INFO :: mylar.run.28 : ThreadPoolExecutor-0_0 : [SEARCH] Running Search for Wanted.
mylar3  | 17-Feb-2026 14:35:31 - INFO :: mylar.searchforissue.1583 : ThreadPoolExecutor-0_0 : Initiating check to add Wanted items to Search Queue....
mylar3  | 17-Feb-2026 14:35:31 - INFO :: mylar.searchforissue.2261 : ThreadPoolExecutor-0_0 : Completed Queueing API Search scan
mylar3  | 17-Feb-2026 14:36:27 - INFO :: mylar.run.27 : ThreadPoolExecutor-0_0 : [WEEKLY] Checking Weekly Pull-list for new releases/updates
mylar3  | 17-Feb-2026 14:36:27 - INFO :: mylar.pullit.43 : ThreadPoolExecutor-0_0 : Weekly pull list present - checking if it's up-to-date..
mylar3  | 17-Feb-2026 14:36:27 - INFO :: mylar.pullit.72 : ThreadPoolExecutor-0_0 : [PULL-LIST] Populating & Loading pull-list data directly from alternate website
mylar3  | Job "Weekly Pullist (trigger: interval[4:00:00], next run at: 2026-02-17 15:36:27 UTC)" raised an exception
mylar3  | Traceback (most recent call last):
mylar3  |   File "/lsiopy/lib/python3.10/site-packages/apscheduler/executors/base.py", line 131, in run_job
mylar3  |     retval = job.func(*job.args, **job.kwargs)
mylar3  |   File "/app/mylar3/mylar/weeklypullit.py", line 30, in run
mylar3  |     weeklypull.pullit()
mylar3  |   File "/app/mylar3/mylar/weeklypull.py", line 73, in pullit
mylar3  |     weekly_info = helpers.weekly_info()
mylar3  |   File "/app/mylar3/mylar/helpers.py", line 3164, in weekly_info
mylar3  |     startweek = stweek + timedelta(weeks = weeknumber)
mylar3  | TypeError: unsupported type for timedelta weeks component: str
mylar3  | 17-Feb-2026 15:53:56 - INFO :: mylar.run.37 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] RSS Feed Check Initalizing....
mylar3  | 17-Feb-2026 15:53:56 - INFO :: mylar.run.54 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Initiating Torrent RSS Check.
mylar3  | 17-Feb-2026 15:53:56 - INFO :: mylar.run.102 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Initiating RSS Feed Check for NZB Providers.
mylar3  | 17-Feb-2026 15:53:56 - INFO :: mylar.run.105 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Initiating RSS Feed Check for DDL Provider.
mylar3  | 17-Feb-2026 15:54:01 - INFO :: mylar.ddl.461 : ThreadPoolExecutor-0_0 : [DDL][RSS-RESULTS] [{'Title': 'The Amazing Spider-Man by Ditko and Romita – Chronological Version (2026)', 'Size': 108447924224, 'Link': '390664', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 13:57:16'}, {'Title': 'Daredevil – Unleash Hell – Red Band (TPB) (2025)', 'Size': 61865984, 'Link': '390661', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 13:38:21'}, {'Title': 'Iron Man – Enter the Mandarin #1 – 6 + TPB (2007-2017)', 'Size': 287309824, 'Link': '7108', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 07:26:16'}, {'Title': 'Avengers Epic Collection Vol. 27 – Timeslide (2025)', 'Size': 13958643712, 'Link': '390655', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 07:20:00'}, {'Title': 'Legion of Super-Heroes – Five Years Later Omnibus Vol. 1 (2020)', 'Size': 20401094656, 'Link': '390652', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 07:05:07'}, {'Title': 'Hobtown Mystery Stories Vol. 3 – The Secret of the Saucer (2025)', 'Size': 152043520, 'Link': '390649', 'Site': 'DDL(GetComics)', 'Pubdate': 'Mon, 16 Feb 2026 07:03:14'}, {'Title': 'The Masterworks Series of Great Comic Book Artists #1 – 3 (1983)', 'Size': 39845888, 'Link': '390637', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:09:53'}, {'Title': 'Tiny Tina’s Wonderlands – Land of the Giants (TPB) (2025)', 'Size': 988807168, 'Link': '364468', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:07:51'}, {'Title': 'The Butcher’s Boy (TPB) (2025)', 'Size': 11811160064, 'Link': '368512', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:06:22'}, {'Title': 'Slightly Exaggerated (2024)', 'Size': 845152256, 'Link': '368507', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:04:30'}, {'Title': 'Rompepistas (2024)', 'Size': 615514112, 'Link': '369420', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sun, 15 Feb 2026 15:02:24'}, {'Title': 'DC Finest – Superman – The First Superhero (TPB) (2024)', 'Size': 731906048, 'Link': '390627', 'Site': 'DDL(GetComics)', 'Pubdate': 'Sat, 14 Feb 2026 12:28:19'}]
mylar3  | 17-Feb-2026 15:54:01 - INFO :: mylar.ddl.463 : ThreadPoolExecutor-0_0 : [RSS][DDL] 12 entries have been indexed and are now going to be stored for caching.
mylar3  | 17-Feb-2026 15:54:01 - INFO :: mylar.run.107 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] RSS Feed Check/Update Complete
mylar3  | 17-Feb-2026 15:54:01 - INFO :: mylar.run.108 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Watchlist Check for new Releases
mylar3  | 17-Feb-2026 15:54:01 - INFO :: mylar.searchforissue.1577 : ThreadPoolExecutor-0_0 : Initiating RSS Search Scan at the scheduled interval of 200 minutes
mylar3  | 17-Feb-2026 15:54:01 - INFO :: mylar.searchforissue.1706 : ThreadPoolExecutor-0_0 : Issues that belong to part of a Story Arc to be searched for : 0
mylar3  | 17-Feb-2026 15:54:01 - INFO :: mylar.nzbdbsearch.911 : ThreadPoolExecutor-0_0 : cur returned. db attached.
mylar3  | 17-Feb-2026 15:54:01 - INFO :: mylar.nzbdbsearch.918 : ThreadPoolExecutor-0_0 : dropped previous rss dataset to ensure we have a clean slate.
mylar3  | 17-Feb-2026 15:54:02 - INFO :: mylar.nzbdbsearch.932 : ThreadPoolExecutor-0_0 : executed insert...now attempting to select
mylar3  | 17-Feb-2026 15:54:02 - INFO :: mylar.nzbdbsearch.1022 : ThreadPoolExecutor-0_0 : [RSS-QUERY] Searched through RSSDB looking for 21 Wanted items in 4085 RSS entries. Rough matching to 0 items.
mylar3  | 17-Feb-2026 15:54:02 - INFO :: mylar.searchforissue.2257 : ThreadPoolExecutor-0_0 : Completed RSS Search scan
mylar3  | 17-Feb-2026 15:54:02 - INFO :: mylar.run.112 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Watchlist Check complete.
mylar3  | 17-Feb-2026 15:54:02 - INFO :: mylar.run.114 : ThreadPoolExecutor-0_0 : [RSS-FEEDS] Successfully ran a forced RSS Check.
mylar3  | 17-Feb-2026 18:36:27 - INFO :: mylar.run.27 : ThreadPoolExecutor-0_0 : [WEEKLY] Checking Weekly Pull-list for new releases/updates
mylar3  | 17-Feb-2026 18:36:27 - INFO :: mylar.pullit.43 : ThreadPoolExecutor-0_0 : Weekly pull list present - checking if it's up-to-date..
mylar3  | 17-Feb-2026 18:36:27 - INFO :: mylar.pullit.72 : ThreadPoolExecutor-0_0 : [PULL-LIST] Populating & Loading pull-list data directly from alternate website
mylar3  | Job "Weekly Pullist (trigger: interval[4:00:00], next run at: 2026-02-17 19:36:27 UTC)" raised an exception
mylar3  | Traceback (most recent call last):
mylar3  |   File "/lsiopy/lib/python3.10/site-packages/apscheduler/executors/base.py", line 131, in run_job
mylar3  |     retval = job.func(*job.args, **job.kwargs)
mylar3  |   File "/app/mylar3/mylar/weeklypullit.py", line 30, in run
mylar3  |     weeklypull.pullit()
mylar3  |   File "/app/mylar3/mylar/weeklypull.py", line 73, in pullit
mylar3  |     weekly_info = helpers.weekly_info()
mylar3  |   File "/app/mylar3/mylar/helpers.py", line 3164, in weekly_info
mylar3  |     startweek = stweek + timedelta(weeks = weeknumber)
mylar3  | TypeError: unsupported type for timedelta weeks component: str

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions