[PATCH] Added --no-tag option

dinkypumpkin dinkypumpkin at gmail.com
Sun Jan 8 12:11:44 EST 2012


Probably not of much interest except for development, but may be useful for
those people who prefer to do their own tagging.

This patch has been incorporated into the get_iplayer Git repo.
Instructions for updating are here:

https://github.com/dinkypumpkin/get_iplayer/wiki/instructions

Commit message and patch follow.

Use --no-tag ("notag 1" in options file) to skip tagging of downloaded programmes.
---
 get_iplayer |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/get_iplayer b/get_iplayer
index f397cf0..7abe256 100755
--- a/get_iplayer
+++ b/get_iplayer
@@ -244,6 +244,7 @@ my $opt_format = {
 	mplayer		=> [ 1, "mplayer=s", 'External Program', '--mplayer <path>', "Location of mplayer binary"],
 
 	# Tagging
+	notag => [ 1, "notag|no-tag!", 'Tagging', '--no-tag', "Do not tag downloaded programmes"],
 	tag_fulltitle => [ 1, "tagfulltitle|tag-fulltitle!", 'Tagging', '--tag-fulltitle', "Use complete title (including series) instead of shorter episode title"],
 	tag_hdvideo => [ 1, "taghdvideo|tag-hdvideo!", 'Tagging', '--tag-hdvideo', "AtomicParsley supports --hdvideo argument for HD video flag"],
 	tag_longdesc => [ 1, "taglongdesc|tag-longdesc!", 'Tagging', '--tag-longdesc', "AtomicParsley supports --longdesc argument for long description text"],
@@ -4241,7 +4242,7 @@ sub mode_ver_download_retry_loop {
 				}
 				if ( ! $opt->{nowrite} ) {
 					$hist->add( $prog );
-					$prog->tag_file;
+					$prog->tag_file if ! $opt->{notag};
 				}
 				if ( $opt->{command} && ! $opt->{nowrite} ) {
 					$prog->run_user_command( $opt->{command} );
-- 
1.7.5.4




More information about the get_iplayer mailing list