Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Completed rips deleted when copy to completed folder fails #1009

Open
4 tasks done
stevenvergenz opened this issue Dec 12, 2023 · 1 comment
Open
4 tasks done
Labels
bug Contains a bug or code error

Comments

@stevenvergenz
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

I have checked the wiki

  • I have searched the wiki for this problem

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

When copying completed rips to the "completed" folder, if the destination file already exists, the files are not copied but it doesn't fail the job. Because the job continues as if the copy was successful, it proceeds to delete the completed files thinking that they're just intermediate transcode files.

This can happen when ripping multi-disk series when all disks get identified as the same series, and thus end up trying to write to the same folder.

To Reproduce

  1. Configure an OMDB API key
  2. Rip disk 1 of a multi-disk series (I used "Vampire Knight (2008)")
  3. Attempt to rip disk 2 of the series
  4. Observe the second rip job succeed with no output to the completed folder

What OS are you seeing the problem on?

Other (please state in Anything else? section)

ARM Release Version or Git hash (You can find this in the arm settings page)

v2.6.67

Expected behavior?

I expected one of the following:

  1. The destination file already existing fails the second job
  2. A new destination filename is chosen for the second job
  3. The second disk is identified differently than the first one, avoiding conflicts to begin with

Relevant log output

[12-11-2023 19:54:13] INFO ARM: Handbrake processing complete
[12-11-2023 19:54:13] INFO ARM: ************* Finished Transcode With HandBrake *************
[12-11-2023 19:54:13] INFO ARM: Removing raw path - /home/arm/media/completed/tv/Vampire Knight (2008)_170232371686
[12-11-2023 19:54:14] INFO ARM: Moving series A1_t00.mkv to /home/arm/media/completed/tv/Vampire Knight (2008)
[12-11-2023 19:54:14] INFO ARM: Moving '/home/arm/media/transcode/tv/Vampire Knight (2008)_170232371686/A1_t00.mkv' to /home/arm/media/completed/tv/Vampire Knight (2008)
[12-11-2023 19:54:14] INFO ARM: File: /home/arm/media/completed/tv/Vampire Knight (2008)/A1_t00.mkv already exists.  Not moving.
[12-11-2023 19:54:14] INFO ARM: EMBY_REFRESH config parameter is false.  Skipping emby scan.
[12-11-2023 19:54:14] INFO ARM: Removing raw path - /home/arm/media/raw/Vampire Knight_170232371686
[12-11-2023 19:54:14] INFO ARM: Removing raw path - /home/arm/media/transcode/tv/Vampire Knight (2008)_170232371686
[12-11-2023 19:54:14] INFO ARM: Removing raw path - /home/arm/media/raw/Vampire Knight_170232371686
[12-11-2023 19:54:14] INFO ARM: ************* ARM processing complete *************

Anything else?

Reproduced on the docker distribution.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@stevenvergenz stevenvergenz added the bug Contains a bug or code error label Dec 12, 2023
Copy link
Contributor

If youre having issues, please remember to read the wiki and follow the instructions carefully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Contains a bug or code error
Projects
None yet
Development

No branches or pull requests

1 participant