D
D
Dmitry Kireev2013-12-02 20:42:17
Automation
Dmitry Kireev, 2013-12-02 20:42:17

How to organize video collection on HTPC / File Cleaner?

Let's consider a theoretical problem:
A user downloads video files on his home HTPC, it is necessary to sort the collection for the correct recognition of their names by the scraper, since very often the file names are in non-standard transliteration or in general in "double translation" - when the title of the movie is translated from the original language into Russian, then transliterated.
For example, Bespodobnyj.mister.Foks.2009.XviD.DVDRip.(HDRip) should become Bespodobnyj.mister.Foks.2009.XviD.DVDRip.(HDRip).
It is also necessary to stay on the distribution, that is, renaming the file is not an option.
Operating system - Centos 6.4. At the moment, a self-written script is used, which:
1. Scans the folder with the distribution files, extracts the paths to the downloaded files and the addresses of the distributions.
2. Parses the handout description page, generates a new name, assigns a category
3. Moves the original file (or folder) to the corresponding category subfolder of the "media" directory
4. Makes a link to the new file in the "downloads" directory, where it was originally downloaded, in order to do not leave the distribution.
How would you accomplish this task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kireev, 2015-10-29
@AutomationD

Here is what came out of it https://github.com/kireevco/thorrent
If someone is interested in the topic, I will give the code "for myself" into the code "for everyone" :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question