Browse Source

fill: reverse after

if you want to fill with as many recent news as possible, putting the
more recent *last*, you need this
boyska 3 years ago
parent
commit
a0b6d77927
1 changed files with 8 additions and 0 deletions
  1. 8 0
      feed

+ 8 - 0
feed

@@ -359,6 +359,12 @@ def get_parser():
         metavar="LEN",
     )
     fill.add_argument(
+        "--fill-reverse",
+        default=False,
+        action="store_true",
+        help="Reverse list order after the fill algorithm",
+    )
+    fill.add_argument(
         "--fill-interleave-dir",
         default=None,
         type=str,  # FIXME: does it even work?
@@ -519,6 +525,8 @@ def main():
                 fill_audios.append(next_audio)
                 duration += next_duration
         audios = fill_audios
+        if args.fill_reverse:
+            audios.reverse()
 
     # the for loop excludes the last one
     # this is to support  the --slotsize option