1. Akiba-Online is sponsored by FileJoker.

    FileJoker is a required filehost for all new posts and content replies in the Direct Downloads subforums.

    Failure to include FileJoker links for Direct Download posts will result in deletion of your posts or worse.

    For more information see
    this thread.
    Dismiss Notice

Auto usenet posting script

Discussion in 'Tutorials' started by SamKook, Jul 21, 2012.

  1. SamKook

    SamKook Akiba Citizen Uploader

    I've finished the latest version of my auto usenet posting script and it seem to be stable enough to be used by other people.
    Make sure you read all of this post carefully or you might end up uploading weird stuff(there's more protections against it now so it probably won't happen).

    ***Usage***
    Create a folder named after the DVD code(very important) of the movie you want to upload.
    Put the bat file, the video and its cover(not mandatory but very recommended) also named after the DVD code in it.
    Drag and Drop the video on the bat file and answer the questions it ask you.

    ***Mandatory softwares***
    -Winrar: http://www.rarlab.com/download.htm
    -yEncBin Poster 1.0.343(1.0.457 Beta2 will NOT work): Google it, the official website is down
    -par2cmdline(creates recovery files): http://chuchusoft.com/par2_tbb/download.html
    Or MultiPar: http://hp.vector.co.jp/authors/VA021385/

    ***Recommended softwares***
    -pure-sfv(create .sfv files): http://sourceforge.net/projects/pure-sfv/files/
    Or MultiPar: http://hp.vector.co.jp/authors/VA021385/
    -md5deep(calculate hashes): http://md5deep.sourceforge.net/#download
    Or MultiPar: http://hp.vector.co.jp/authors/VA021385/
    -movie thumbnailer(create thumbnails image): http://moviethumbnail.sourceforge.net/
    -MediaInfo(CLI Interface): http://mediainfo.sourceforge.net/en/Download/Windows
    -Gimp(create cropped front cover): http://www.gimp.org/downloads/

    ***What it does***
    -*Create a basic nfo file containing some technical informations about the video
    -*Create a md5 hash file of the video(to check for corruption of the video itself)
    -*Crops the cover
    -Add the video and its files in rar archives with a personalized comment.
    -*Create a sfv hash file of the rar archives(for a faster check for corruption than par2 files)
    -Create a set of par2 recovery files
    -*Create a thumbnail file of the video
    -Start posting everything to usenet

    Every steps with a * before it can be omitted if the software isn't specified.


    ***Configuration***
    Before you start using the script, you need to configure the settings in yEncBin Poster.
    Your news server address, your posting name and email, the number of connections to use and you need to set the number of lines to 3000(more than that has proven to be problematic) if it's not already set to it.

    Also, there are a few things you need to change in the script itself.
    To do so, just open the bat file in a simple text editor(you can also achieve this by right-clicking it and selecting edit).
    Note: All the lines starting with "REM" are comments in the script and are only there to help explain what's happening, they don't actually do anything. Some software will change their color(like notepad2) which makes things easier.

    Starting around line 25, you will see 3 block of lines that start with the word "SET". the Mandatory one, the recommended one and the variables.
    Those are the path of the software and they need to be changed to where you put them.
    The "SET cmt" is the comment that will be included in the rar files so you can put anything you want there.
    If you want to crop the front of the cover into a new file using gimp, but don't want to copy the crop_cover_template.txt every time you upload a video, you can set a path for "SET tmpltdir"(remove the %wrkdir% since this is a variable for the current path) and copy crop_cover_template.txt there once. It will then alway be found from anywhere.
    If you don't want to crop the front of the cover, you don't need crop_cover_template.txt so you can delete it.
    You only need to change what's between the = and the last ". Removing or changing anything outside of it will cause the script to fail.
    Removing everything between the = and " will skip the step.

    The default par2 recovery % is set to 5%.
    If you want to change it, go to the line after "ECHO ***Creating recovery files***" and change the number next to -r(or -rr if you use multipar) to the desired %.
    10% would look like this: "%par2%" c -s384000 -r10 "%wrkdir%%newsd%%~n1" "%wrkdir%%newsd%%~n1.r??"
    Or like this for multipar: "%par2%" c -rd2 -sm384000 -rr10 "%wrkdir%%newsd%%~n1" "%wrkdir%%newsd%%~n1.r??"

    Now go to the end of the script and find the 2 lines that start with" START "Usenet upload" "%yenc%"
    The first one if for queuing and the second for posting.
    It might be a good idea to add REM followed by a space before the two of them and try executing it to make sure you configured everything properly and no unusual errors are displayed. The files to be posted will be in the "Usenet" folder which is automatically created in the current folder by the script.

    You probably don't need to know this other than the H options which you might want to customize, but here's the signification of yEncBin options:
    The /P right after it tells yEncBin to start posting immediately and
    The /C tells it to close itself after its done.
    The /F is the folder where the files are loaded so you don't need to touch it since it's set automatically.
    The /H is the subject header of you post. "%avs%" will be replaced by the DVD code and "[file#/total_files#] - "filename" yEnc" will always be added at the end(to make sure indexing is not screwed up). You can change what's between the " to your liking.
    The /N are the groups you will be posting to separated by a space. Posting to more than one will not take any longer since the file only need to be uploaded once. the variable %grp% contains them and is created at the beginning of the script when you choose if it's a lesbian movie or not.
    The /Z will create a nzb file and "%~n1" will name it after the video.


    ***Download***
    Script:View attachment 667789


    ***Troubleshooting***
    The Arial unicode font is used for the thumbnail creation so if you don't have it installed, you either need to do that or change it.
    -To install it, google "arialuni.ttf download", download it(it's a 22.1MB file if not compressed) and drag and drop the .ttf file(if it's in a rar file, you need to extract it first) in the Fonts folder and it will install itself.
    -To change it, just search for ARIALUNI.TTF in the script and change it to whatever font filename(check in c:\Windows\Fonts, right-click the font you want, go in properties and the file name will be the first thing on the tab) you want(like arial.ttf for example).


    ***Conclusion***
    If you have any questions after carefully reading this post, if you've found a bug in the script or if you have an idea of how to make it better, don't hesitate to let me know.