~thecashewtrader/scripts

0d916561a4ee2747d2232ea5e4a61eee7e16a604 — thecashewtrader 8 months ago 3240bd2
update get_firefox_tabs.py
1 files changed, 3 insertions(+), 2 deletions(-)

M get_firefox_tabs/get_firefox_tabs.py
M get_firefox_tabs/get_firefox_tabs.py => get_firefox_tabs/get_firefox_tabs.py +3 -2
@@ 18,7 18,7 @@ files = path.glob('*default*/sessionstore-backups/recovery.js*')
try:
    template = sys.argv[1]
except IndexError:
    template = '%s'
    template = '%s | %s'

for f in files:
    b = f.read_bytes()


@@ 29,5 29,6 @@ for f in files:
        for t in w['tabs']:
            i = t['index'] - 1
            print(template % (
                t['entries'][i]['url']
                t['entries'][i]['url'],
                t['entries'][i]['title']
                ))